Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfajax mystery

New Here ,
Nov 24, 2010 Nov 24, 2010

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

1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 24, 2010 Nov 24, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 24, 2010 Nov 24, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources