Apollo-server: 405 Apollo supports only GET/POST requests

Created on 8 Apr 2020  路  1Comment  路  Source: apollographql/apollo-server

I have used apollo-server-lambda on a AWS ApiGateway HttpApi (currently in beta) endpoint. I have done this previously but when I tried this today I got "405 Apollo supports only GET/POST requests" error when I hit the endpoint.

I figured out this was because newly created endpoints default to payload format version 2.0 which causes this 405 issue. Changing back the endpoint integration back to 1.0 fixes the issue.

Is it possible to support payload format version 2.0 in AWS ApiGateway?

https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html

Most helpful comment

Hey @abernix, just want to check if this is on your radar? I know you're busy and working on 3.0. It's been 6 months since this was posted and there are quite a few other issues related to this.

>All comments

Hey @abernix, just want to check if this is on your radar? I know you're busy and working on 3.0. It's been 6 months since this was posted and there are quite a few other issues related to this.

Was this page helpful?
0 / 5 - 0 ratings