You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior/code
Expect the deployed version to work the same locally (in this case, a landing page linking to Apollo Sandbox), and Postman queries to return the same as deployed (in this case Hello world!)
Environment
serverless version: 2.52.1
serverless-offline version: tried latest 8.0.0 and 7.1.0, same story
node.js version: v14.17.1
OS: macOs 10.15.7 Catalina
Possible Solution
I believe it might be something with the total rewrite of AS3, and their use of the 3rd party package to convert Lambda to Express-type requests.
This thread talks about their changes, and decisions: apollographql/apollo-server#5415
The text was updated successfully, but these errors were encountered:
Same Issue for me, I think this issue is about default URL.
I've made change in serverless.yml file by changing default url path by something else like path: /graphql.
Now all work for me, locally and deployed.
Bug Report
Brand-new project created today (28th July 2021), using the starter script (https://www.apollographql.com/docs/apollo-server/deployment/lambda/). Nothing added, not even middleware, doesn't work locally at all, with no errors showing in the console.
Current Behavior
locally
npm run dev
:GET: Cannot GET null (404)
POST (through Postman): Cannot POST null (404)
deployed
works just fine, as expected
Sample Code
https://github.com/nova93/apollo-3-test
Expected behavior/code
Expect the deployed version to work the same locally (in this case, a landing page linking to Apollo Sandbox), and Postman queries to return the same as deployed (in this case Hello world!)
Environment
serverless
version: 2.52.1serverless-offline
version: tried latest 8.0.0 and 7.1.0, same storynode.js
version: v14.17.1OS
: macOs 10.15.7 CatalinaPossible Solution
I believe it might be something with the total rewrite of AS3, and their use of the 3rd party package to convert Lambda to Express-type requests.
This thread talks about their changes, and decisions: apollographql/apollo-server#5415
The text was updated successfully, but these errors were encountered: