Error 413 - Entity too large

82 views
Skip to first unread message

Tristan Brenner

unread,
Sep 16, 2015, 4:10:47 PM9/16/15
to restify
Hi, we are using restify with mongodb .
We try to put an image as dataUrl base 64 of 600 Ko. But we always have an error 413.
Does anyone have a solution ?

Thanks for all

Sonia

Paolo Nicorelli

unread,
Sep 17, 2015, 3:27:45 AM9/17/15
to res...@googlegroups.com
On 16 September 2015 at 22:10, Tristan Brenner <tristan.b...@gmail.com> wrote:

We try to put an image as dataUrl base 64 of 600 Ko. But we always have an error 413.


what happend if you use a

restify.bodyParser({maxBodySize: n})

with n enough large?


Tristan Brenner

unread,
Sep 17, 2015, 8:55:09 AM9/17/15
to restify
With this value for n : server.use(restify.bodyParser({maxBodySize: 100000000}));
the result is error 413 too. 

Paolo Nicorelli

unread,
Sep 18, 2015, 2:54:27 AM9/18/15
to res...@googlegroups.com
On 17 September 2015 at 14:55, Tristan Brenner <tristan.b...@gmail.com> wrote:
With this value for n : server.use(restify.bodyParser({maxBodySize: 100000000}));
the result is error 413 too. 

In case you didn't find any workaround OR just for fun...

can you check it? In case a little debug on that code can be helpful to solve.

(my 2 cent)

cheers



Reply all
Reply to author
Forward
0 new messages