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

Missing multipart field ‘operations’ when I use firebase functions #178

Closed
jeemyeong opened this issue Jan 4, 2020 · 2 comments
Closed

Comments

@jeemyeong
Copy link

I have some troubles to use graphql-upload when I use firebase functions.

https://github.com/prisma-labs/graphql-yoga/blob/master/examples/file-upload/index.ts
You can experience same error with this code and firebase functions.

I got a message BadRequestError: Missing multipart field ‘operations’ for unknown reasons, but I tried to figure out what can make this error, so finally I got a hint in this code.

request.pipe(parser)

How about changing this code to parser.end(request.rawBody) like (https://cloud.google.com/functions/docs/writing/http#multipart_data)?

I am hoping this will solve my problem.

@jeemyeong
Copy link
Author

I found this was a duplication of #129

@koresar
Copy link

koresar commented Jun 9, 2020

Hey @jeemyeong
I've forked graphq-upload and looking for someone to test how it works in GCF.
More details are in this comment: #155 (comment)

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

No branches or pull requests

2 participants