Copy link to clipboard
Copied
Hi,
This is a mystery. I have a file running perfectly fine on the test site but get the following error when running on the production site:
window:global: Exception thrown and not caught (http://XXXXX/CFIDE/scripts/ajax/package/cfajax.js, line 803)
There appears to be very little discussion on this error, let alone any explanation or solution. Both sites are Linux running on CF9. Any help is appreciated.
Natomas
Copy link to clipboard
Copied
Line 803 on my copy says:
throw new SyntaxError("parseJSON");
So my guess is that there is an error parsing the JSON response returned from the server. Do you have debugging turned on? Try making a request to the method you are calling, eg /folder/file.cfc?method=methodName&x=y&returnformat=json
You might see that CF is throwing an exception, or something else when you request the file manually. If all looks valid try running the json through http://www.jsonlint.com/ to validate it.
Copy link to clipboard
Copied
Peter,
I did have cfdebug and believe that it is a problem of JSON returned incorrectly. What mystifies me is that everything runs perfectly fine on one site but throws an error on another. Both sites, according to the sysadmin, have the same configuration of CF server. I would like to go back to ask the sysadmin to check again, but before I do that I want to make sure that I have done everything I can on my end.
Thanks for your advice!
Natomas