Sorry, forgot to say: I'm using Swagger Node Express (latest) and the error below happens when I try a Post to a REST service running under it. The problem may be a bit more serious as it seems to affect any type of payloads (body), not just JSON. 100kb is to small for certain use cases.
Regards, Luiz On Thursday, January 5, 2017 at 11:41:02 AM UTC-5, Luiz Omori wrote: > > Hi, > > I happen to have an auto-generated JSON file that is larger than 100kb. > I'm getting 413 (Payload Too Large) error when posting it. I found out that > Swagger Node is using its own bodyParser (text.js coming from Swagger Tools > dependency). This module is loaded by swagger-metadata and the options > passed (line 53 of swagger-metadata.js) don't specify any request size > limits which then causes text.js to use the default 100kb. Is there a way > to override this behaviour? > > Regards, > Luiz > -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
