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

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

Comments

Projects
None yet
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

This comment has been minimized.

Show comment
Hide comment
@dhruvbird

dhruvbird Feb 1, 2014

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.

Owner

dhruvbird commented Feb 1, 2014

@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 added a commit that referenced this issue Feb 1, 2014

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.
@dhruvbird

This comment has been minimized.

Show comment
Hide comment
@dhruvbird

dhruvbird Feb 1, 2014

Owner

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

Owner

dhruvbird commented Feb 1, 2014

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

@eraserhd

This comment has been minimized.

Show comment
Hide comment
@eraserhd

eraserhd Feb 3, 2014

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

eraserhd commented Feb 3, 2014

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

@dhruvbird

This comment has been minimized.

Show comment
Hide comment
@dhruvbird

dhruvbird Mar 16, 2014

Owner

@eraserhd Any update on this?

Owner

dhruvbird commented Mar 16, 2014

@eraserhd Any update on this?

@eraserhd

This comment has been minimized.

Show comment
Hide comment
@eraserhd

eraserhd Mar 19, 2014

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.

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

This comment has been minimized.

Show comment
Hide comment
@dhruvbird

dhruvbird Mar 19, 2014

Owner

Thanks! :)

Owner

dhruvbird commented Mar 19, 2014

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment