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

Increase maxBuffer to 1MB #2018

Merged
merged 1 commit into from Sep 10, 2020
Merged

Increase maxBuffer to 1MB #2018

merged 1 commit into from Sep 10, 2020

Conversation

standy
Copy link
Contributor

@standy standy commented Sep 10, 2020

This is bug fix

My graphql.schema.json grown to 1.5KB, and my schema validation broke:

graphql-inspector diff git:origin/master:graphql.schema.json ./graphql.schema.json

The error I'm getting is: Error: Unable to load file from git: RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded

Fix is easy: increase buffer size to 1MB (default value was 1KB)

My `graphql.schema.json` grown to 1.5KB, and my schema validation broke. The error I'm getting is: 
`Error: Unable to load file from git: RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded`

Fix is easy: increase buffer size to 1MB (default value was 1KB)
@ardatan
Copy link
Owner

ardatan commented Sep 10, 2020

Thank you @standy !

@ardatan ardatan added the bugfix label Sep 10, 2020
@ardatan ardatan merged commit df6e0ae into ardatan:master Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants