moneybutton / express-paymail

Express implementation for paymail specification.
Other
29 stars 24 forks source link

body-parser limiting requests larger than 100kb #12

Open kevinejohn opened 4 years ago

kevinejohn commented 4 years ago

If this library is added to the express router in front of any endpoints it will reject any content-type: application/json requests larger than 100kb because of body-parser default limit. One fix would be to add in a config flag with a custom limit. Another fix would be to only use body-parser on the endpoints that match with this library.

https://github.com/expressjs/body-parser#limit

https://github.com/moneybutton/express-paymail/blob/2f47f18eaa7165a7a7da91bd756ff99f81362e43/src/index.js#L71

hankyupark commented 3 years ago

same issue! I failed to receive a TX of 130kb in rawtx.