-
Notifications
You must be signed in to change notification settings - Fork 65
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
Large request - bodyParser - missing query field #1313
Comments
Check that you're not using two different versions of |
What exactly do you mean? I'am using just
This is my app.ts
|
Ah, sorry for being a bit unclear - I should've added that |
I traced graphql-upload versions in the repository and there is just newest version installed. I have new version of nexus which use apollo-server-express.
By the look of it, it should be ok right? I still don't know where could be a problem. All packages are uptodate, all settings are correct(hopefully). |
Problem with bodyParser for file uploads is not resolved, but I probably found solution. Use this middleware instead of bodyParser
|
Sorry if it shouldn't be in this category.
Nexus Report
■ nexus:server:graphql BadRequestError: Invalid body: request entity too large.
Description
I am using graphql-upload and this error occurect. I tried to use bodyParser to solve it like so:
server.express.use(bodyParser.json({type: 'application/json', limit: '10mb'}))
but it throwed another error that
■ nexus:server:graphql BadRequestError: request.body json expected to have a query field
Any ideas how to make it work? Thanks
The text was updated successfully, but these errors were encountered: