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)
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.
Comment 1•17 years ago
|
||
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
Updated•17 years ago
|
Attachment #359309 -
Attachment mime type: text/x-c → text/plain
Comment 7•17 years ago
|
||
Comment 8•17 years ago
|
||
Updated•17 years ago
|
Attachment #359309 -
Attachment is obsolete: true
Updated•17 years ago
|
Attachment #359308 -
Attachment is obsolete: true
Updated•17 years ago
|
Attachment #359307 -
Attachment is obsolete: true
Comment 9•17 years ago
|
||
With this testcase it seems to work fine for me, are you getting errors with this testcase as well?
Updated•17 years ago
|
Keywords: testcase-wanted → testcase
| Reporter | ||
Comment 10•17 years ago
|
||
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.
| Reporter | ||
Comment 11•17 years ago
|
||
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.
Updated•16 years ago
|
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.
Description
•