Parsing error with big json files on Firefox
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: u564798, Unassigned)
References
Details
(Whiteboard: btpp-followup-2016-03-11)
Updated•9 years ago
|
Reporter | ||
Comment 10•9 years ago
|
||
Reporter | ||
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
Comment 15•9 years ago
|
||
Comment 16•9 years ago
|
||
Reporter | ||
Comment 17•9 years ago
|
||
Comment 18•6 years ago
|
||
Hi
Sorry to bump this report but i've come accros this bug.
The steps to reproduce are simple but doesn't involve the json viewer in the main window.
A little context before detailing my steps :
The api i talk to is not on https
A token needs to be sent in the request header
Only POST method is supported.
The request paramaters needs to be a json encoded object
So in order to test this particular endpoint in firefox i need to use the header tab of the dev tools network tab.
1 - Open the network pane in a new tab
2 - go to the url of the endpoint
3 - get a 405 because the GET method is not supported
4 - modify the headers to include the token, content-type, accept-encoding and change the method to POST
5 - SEND
200 code for the response but in the response tab i get the error
----- SyntaxError: JSON.parse: unterminated string at line 1 column 1049461 of the JSON data -----
REQUEST HEADERS
Host: apiv2.europeansourcing.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Accept: application/json;q=0.9,/;q=0.8
Accept-Language: fr,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Encoding: gzip, deflate
content-type: application/json
DNT: 1
Connection: keep-alive
x-auth-token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Content-Length: 322
Pragma: no-cache
Cache-Control: no-cache
RESPONSE HEADERS
HTTP/1.1 200 OK
Date: Thu, 17 Jan 2019 16:21:16 GMT
Server: Apache/2.4.25 (Debian)
Set-Cookie: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; path=/; HttpOnly
Cache-Control: max-age=0, must-revalidate, private
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/json
Comment 19•6 years ago
|
||
Forgot to mention that i'm on firefox 60.4esr from debian stretch
Assignee | ||
Updated•6 years ago
|
Comment 20•6 years ago
|
||
Seeing the same problem using the fetch api (ff 65).
The dev tools just give up on bigger json responses ~2mb =>
SyntaxError: JSON.parse: unterminated string at line 1 column 1048577 of the JSON
Chrome got no problem parsing.
Firefox nightly (67.0a1 (2019-03-13)) is different
Response has been truncated
which is great, but it makes the (apple) beach ball appear.
Updated•2 years ago
|
Description
•