Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kickstarter throws error when swagger longer than limit #217

Closed
DG007 opened this issue Jul 26, 2019 · 0 comments
Closed

kickstarter throws error when swagger longer than limit #217

DG007 opened this issue Jul 26, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@DG007
Copy link

DG007 commented Jul 26, 2019

While trying to save a api configuration, it returns a error
{ PayloadTooLargeError: request entity too large at readStream (/usr/src/app/node_modules/raw-body/index.js:155:17) at getRawBody (/usr/src/app/node_modules/raw-body/index.js:108:12) at read (/usr/src/app/node_modules/body-parser/lib/read.js:77:3) at jsonParser (/usr/src/app/node_modules/body-parser/lib/types/json.js:135:5) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:317:13) at /usr/src/app/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:335:12) at next (/usr/src/app/node_modules/express/lib/router/index.js:275:10) at logger (/usr/src/app/node_modules/morgan/index.js:144:5) message: 'request entity too large', expected: 171713, length: 171713, limit: 102400, type: 'entity.too.large' } error: [+26860ms] kickstarter:kickstart {"message":"request entity too large","expected":171713,"length":171713,"limit":102400,"type":"entity.too.large"} error: [+ 0ms] kickstarter:kickstart PayloadTooLargeError: request entity too large at readStream (/usr/src/app/node_modules/raw-body/index.js:155:17) at getRawBody (/usr/src/app/node_modules/raw-body/index.js:108:12) at read (/usr/src/app/node_modules/body-parser/lib/read.js:77:3) at jsonParser (/usr/src/app/node_modules/body-parser/lib/types/json.js:135:5) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:317:13) at /usr/src/app/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:335:12) at next (/usr/src/app/node_modules/express/lib/router/index.js:275:10) at logger (/usr/src/app/node_modules/morgan/index.js:144:5)
I think the error is not valid as the swagger can be long than this limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants