Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro 404 (Not Found) após criar uma Agenda Diária #177

Open
idgserpro opened this issue Jul 3, 2020 · 0 comments
Open

Erro 404 (Not Found) após criar uma Agenda Diária #177

idgserpro opened this issue Jul 3, 2020 · 0 comments

Comments

@idgserpro
Copy link
Member

Após criar uma Agenda Diária, ocorrem os erros abaixo no console de javascript:

++resource++plone.app.jquery.js:2 GET http://localhost:8080/Plone/nova-agenda/json/NaN-aN-aN 404 (Not Found)
send @ ++resource++plone.app.jquery.js:2
ajax @ ++resource++plone.app.jquery.js:2
update @ brasilgovagenda-720c34e.js:157
(anonymous) @ brasilgovagenda-720c34e.js:288
dispatch @ ++resource++plone.app.jquery.js:2
u @ ++resource++plone.app.jquery.js:2
load (async)
add @ ++resource++plone.app.jquery.js:2
(anonymous) @ ++resource++plone.app.jquery.js:2
each @ ++resource++plone.app.jquery.js:2
each @ ++resource++plone.app.jquery.js:2
on @ ++resource++plone.app.jquery.js:2
v.fn.<computed> @ ++resource++plone.app.jquery.js:2
v.fn.load @ ++resource++plone.app.jquery.js:2
(anonymous) @ comments.js:90
(anonymous) @ comments.js:241
brasilgovagenda-720c34e.js:166 Uncaught TypeError: Cannot read property 'daysWithAppointments' of undefined
    at DatePicker.<anonymous> (brasilgovagenda-720c34e.js:166)
    at l (++resource++plone.app.jquery.js:2)
    at Object.fireWith [as rejectWith] (++resource++plone.app.jquery.js:2)
    at T (++resource++plone.app.jquery.js:2)
    at XMLHttpRequest.r (++resource++plone.app.jquery.js:2)
(anonymous) @ brasilgovagenda-720c34e.js:166
l @ ++resource++plone.app.jquery.js:2
fireWith @ ++resource++plone.app.jquery.js:2
T @ ++resource++plone.app.jquery.js:2
r @ ++resource++plone.app.jquery.js:2
XMLHttpRequest.send (async)
send @ ++resource++plone.app.jquery.js:2
ajax @ ++resource++plone.app.jquery.js:2
update @ brasilgovagenda-720c34e.js:157
(anonymous) @ brasilgovagenda-720c34e.js:288
dispatch @ ++resource++plone.app.jquery.js:2
u @ ++resource++plone.app.jquery.js:2
load (async)
add @ ++resource++plone.app.jquery.js:2
(anonymous) @ ++resource++plone.app.jquery.js:2
each @ ++resource++plone.app.jquery.js:2
each @ ++resource++plone.app.jquery.js:2
on @ ++resource++plone.app.jquery.js:2
v.fn.<computed> @ ++resource++plone.app.jquery.js:2
v.fn.load @ ++resource++plone.app.jquery.js:2
(anonymous) @ comments.js:90
(anonymous) @ comments.js:241

Este erro ocorre porque o javascript tenta pegar a data do final da url mas, logo após a criação da Agenda Diária, o final da url tem um /view. Exemplo:

http://localhost:8080/Plone/nova-agenda/2020-07-04/view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant