Apollo-server: Payload Too Large

Created on 29 Jan 2017  路  3Comments  路  Source: apollographql/apollo-server

I just tried to fire a bunch of mutations against the graphql-server. This now throws an error 413 Payload Too Large. How can I increase the payload?

Most helpful comment

thought this is a problem of graphql-server however it is caused by bodyParser and resolved through bodyParser.json({limit: '50mb'})

All 3 comments

thought this is a problem of graphql-server however it is caused by bodyParser and resolved through bodyParser.json({limit: '50mb'})

Thanks for the info! Had same problem.

Wow, I originally thought my 413 Payload Too Large response had a root cause from my nginx proxy server especially since the documentation said it's 413 codes may be displayed differently in the browser. Long story short after a ton of debugging I fell onto this feed and found the root cause was the default bodyParser.json() limit of 100kb. I set that just like @manuelfink and it fixed my problem!

Was this page helpful?
0 / 5 - 0 ratings