Skip to content

POST requests with large data do not appear to get sent #26

Closed
eraserhd opened this Issue Jan 30, 2014 · 6 comments

2 participants

@eraserhd

A POST with about 11,000 lines of JSON appears to send, but is never received on the other side. Making the request much smaller solves it.

@dhruvbird
Owner

@eraserhd By any chance, does your larger JSON have a null character? I noticed that this might be a problem. Can you send across the offending JSON (or something that fails) so that I can repro.

@dhruvbird dhruvbird added a commit that referenced this issue Feb 1, 2014
@dhruvbird Don't use null-terminated strings for request body. This tends to fai…
…l with JSON since JSON isn't a subset of javascript, and allows some whitespace characters. See http://timelessrepo.com/json-isnt-a-javascript-subset for details. Fixes issue #26. Bump up version to 0.0.5.
2ef8090
@dhruvbird
Owner

@eraserhd Can you either confirm or deny if this fixes your problem?

@eraserhd
eraserhd commented Feb 3, 2014

@dhruvbird I'll investigate today and report back. Thanks!

@dhruvbird
Owner

@eraserhd Any update on this?

@eraserhd

I don't seem to have any NUL bytes in any of the JSON files I would have been using this with. I went back to that date, also. But since I don't remember what exactly I was doing, I can't investigate. I'll report again if I have the problem again.

@eraserhd eraserhd closed this Mar 19, 2014
@dhruvbird
Owner

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.