Closed Bug 475710 Opened 17 years ago Closed 16 years ago

firefox says that valid JSON object is not well-formed

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: thx, Unassigned)

Details

(Keywords: testcase)

Attachments

(3 files, 3 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 I'm using a jQuery method .getJSON to get an information in a json format. Sometimes (not all the time) I get the errors like that: Not well-formed {"data":"value"} This is a valid JSON object. Previous FF version 2.x didn't show this errors. Reproducible: Sometimes Steps to Reproduce: 1. 2. 3.
Can you provide a testcase that reproduces this bug? There isn't really much to go on here.
Keywords: testcase-wanted
I've added three files. test.html test.cgi and jquery.js (just to make sure we use the same version in a testing) Put all these files somewhere in a cgi-bin directory on your server and type in a browser: http://server_ip/test.html I've added a screen with Firebug errors I got. Hope this helps. Thanks
Attachment #359309 - Attachment mime type: text/x-c → text/plain
Attached file text file
Attached file testcase
Attachment #359309 - Attachment is obsolete: true
Attachment #359308 - Attachment is obsolete: true
Attachment #359307 - Attachment is obsolete: true
With this testcase it seems to work fine for me, are you getting errors with this testcase as well?
Your testcase works fine for me. I don't see any errors when I get data from the .txt file. But errors appears if I trying to get a data from the cgi script as in my testcase.
I think the problem is in my http server. Looks like Firefox doesn't like the response from the server. This this bug can be closed. Thanks.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: