HTTP content length exceeded 65536 bytes.

326 views
Skip to first unread message

adpop

unread,
Jul 17, 2017, 4:52:04 AM7/17/17
to Gremlin-users
Hello!

I started a Gremlin rest server and I am trying to submit something to it, but I constantly get the "HTTP content length exceeded 65536 bytes." error. The last lines in the config file look like this:

maxInitialLineLength: 16384
maxHeaderSize: 16384
maxChunkSize: 16384
maxContentLength: 1048576
maxAccumulationBufferComponents: 1048576
resultIterationBatchSize: 16384

(I played a little bit with the values). The length of the string I am trying to submit is 520338 bytes (that's what javascript said). What can I do, what values do I have to change for this to work? Thanks!

Stephen Mallette

unread,
Jul 17, 2017, 7:41:43 AM7/17/17
to Gremlin-users
maxContentLength should have fixed that - not sure why it didn't. i just added a test to validate that it works and it behaves as expected:


I did make a minor modification to the exception processing to be a bit more verbose and it looks like the error was not getting back to the client for this particular exception so i corrected that too. Anyway, even without my changes it should work if you increase that value.


--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/4df61dde-b419-4973-93cb-a8893f8bce96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

adpop

unread,
Jul 17, 2017, 8:06:52 AM7/17/17
to Gremlin-users
I'll try to play a bit with the values, even it seems weird. Thanks!
Reply all
Reply to author
Forward
0 new messages