Skip to content

Pass through bodyParser.json() middleware options #12

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbland
Copy link

@mbland mbland commented Jun 22, 2015

18F/pages is a Hookshot server for https://pages.18f.gov/. As noted in 18F/pages#14, the default 100KB payload limit was exceeded by a webhook fired for uswds/uswds#54. This change will allow us to pass options through to the bodyParser.json() middleware to increase the limit.

I've currently installed this on our server using:

$ npm install git+ssh://[email protected]/18F/hookshot.git#json-options

I've also updated our 18F/pages server to use this version, and verified that it addresses our problem, evidenced by the logs and the successful first deployment of https://pages.18f.gov/govt-wide-patternlibrary/.

cc: @juliaelman

18F/pages is a Hookshot server for https://pages.18f.gov/. Recently, as noted
in 18F/pages#14, the default 100KB payload limit was exceeded by a webhook
fired for uswds/uswds#54. This change will allow us to pass
options through to the bodyParser.json() middleware to increase the limit.
@mbland
Copy link
Author

mbland commented Aug 17, 2015

Ping... Any interest in merging this?

mbland pushed a commit to 18F/hub that referenced this pull request Aug 17, 2015
The public Hub push in #370 failed due to the webhook exceeding the
default 100K limit, just as in 18F/pages#15. This applies the same fix as
18F/pages. Still waiting on coreh/hookshot#12 to get merged upstream, so
I've already installed 18F/hookshot#json-options on the server:

```
npm install git+ssh://[email protected]/18F/hookshot.git#json-options
```

Note: I applied this in 18F/18f.gsa.gov#1102, but really should've just
applied it here. No harm done, however.
ScottONeal added a commit to ScottONeal/githooked that referenced this pull request Jan 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant