nickva commented on issue #5004:
URL: https://github.com/apache/couchdb/issues/5004#issuecomment-2525460471

   Thinking more about the issue, it looks like the json parser throws the 
error on the very first character.
   
   Something like:
   
   ```
   ([email protected])31> jiffy:decode(<<"x">>).
   ** exception error: {1,invalid_json}
   ```
   
   Or it could be any non-json text, say a plain html page:
   
   ```
   > jiffy:decode(<<"Some text">>).
   ** exception error: {1,invalid_json}
        in function  jiffy:decode/2 (src/jiffy.erl, line 63)
   ```
   
   In the past html error pages from proxies, could cause that 
https://github.com/apache/couchdb/issues/1080
   
   Maybe there is a way to inspect or capture the request stream (with 
wireshark or similar) to see what data it's getting?
   
   Another idea, check if you have any size limits set. We had changed the 
limit a few times in the past 
https://docs.couchdb.org/en/stable/config/couchdb.html#couchdb/max_document_size.
 That would return a 413 response though?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to