open-rpc / server-js

JSON-RPC 2.0 Server implementation that supports multiple transport protocols.
Apache License 2.0
43 stars 11 forks source link

PayloadTooLargeError: request entity too large #292

Closed shanejonas closed 4 years ago

shanejonas commented 4 years ago

Describe the issue PayloadTooLargeError: request entity too large

When using mock.open-rpc.org im trying to use a large openrpc file:

https://playground.open-rpc.org/?url=https://gist.githubusercontent.com/meowsbits/4da4c08765679dac1899543002d1f545/raw/dbb50d67297dd4fd5887b5f353e22470b6a62b98/spec.json

image

and i receive the error PayloadTooLargeError: request entity too large

Additional Information

bodyparser json defaults to 100kb limit:

image

Source: https://github.com/expressjs/body-parser#bodyparserjsonoptions

Solution We should raise this to atleast 1mb by default

openrpc-bastion commented 4 years ago

:tada: This issue has been resolved in version 1.6.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: