-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Labels
Description
When sending a large (>100kb) body the proxy fails:
Assuming the proxy is running on localhost:
printf '==========%.0s' {1..100000} > dummy.json
curl -X POST http://localhost:8200/index1/typ1 -d @dummy.json
=> body parser error:
Error: request entity too large
However increasing the bodyparser limit causes other issues:
app.use(bodyParser.raw({
limit: '1mb',
type: function() { return true; }}));
=> Error: Can't set headers after they are sent.
at ClientRequest.OutgoingMessage.setHeader (_http_outgoing.js:357:11)
Is there a workaround for this issue?
Reactions are currently unavailable