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

Faild upload file with apollo-server-lambda #5093

Closed
GolivetsAndreu opened this issue Apr 7, 2021 · 1 comment
Closed

Faild upload file with apollo-server-lambda #5093

GolivetsAndreu opened this issue Apr 7, 2021 · 1 comment

Comments

@GolivetsAndreu
Copy link

I get "Error: Missing Content-Type" when I tried upload file. I send event.headers['Content-Type'] and it throw error, but if I send event.headers['content-type'] all is working. For now I resolve it by checking for "content-type" headers before call apollo handler and set it if haven`t.

@glasser
Copy link
Member

glasser commented Apr 7, 2021

Hmm, I think current versions of the code do look in content-type. I also don't see the error "Missing Content-Type" anywhere in the code.

We are also in the process of removing the built-in integration with (an outdated version of) graphql-upload for Apollo Server 3; instead, we encourage folks who want uploads to use that package directly. Because there's a workaround for this issue (and there isn't a detailed enough reproduction for me to understand where this error comes from) and it won't be part of AS3, I'm going to close this issue.

@glasser glasser closed this as completed Apr 7, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants