[Seaside] How can I debug ajax errors?
Mariano Martinez Peck
marianopeck at gmail.com
Fri Feb 10 20:02:09 UTC 2017
It happens to me quite frequently that I have some issue in an AJAX calls.
On Chrome, I see:
Uncaught SyntaxError: Unexpected token $ in JSON at position 0
at JSON.parse (<anonymous>)
at Function.n.parseJSON (jQuery.js:4)
at HTMLDocument.dispatch (jQuery.js:3)
at HTMLDocument.r.handle (jQuery.js:3)
at Object.trigger (jQuery.js:3)
at x (jQuery.js:4)
at XMLHttpRequest.b (jQuery.js:4)
But there is no way for me to know what triggered that at Seaside level. If
I inspect the "VM2043:1" kind of link in the Chrome console, I get to the
script generated by my ajax which is something like:
Chrome shows me that with a red underline like if that would have an error,
but such JS is correct.
Any idea how can I know what is going on?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside