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

Vercel/Serverless broken after apollo-server upgrade on develop #307

Closed
electerious opened this issue Jan 9, 2022 · 2 comments
Closed

Comments

@electerious
Copy link
Owner

🐞 Describe the bug

The Vercel deployment is broken after upgrading apollo-server-lambda to version 3 (maybe other serverless solutions are broken, too). The code seems to be correct according to the Apollo docs, but the serverless function is throwing the following error when /api gets called:

[POST] /api
19:28:08:34
2022-01-09T18:28:10.719Z	2014d7ba-295d-4344-a94a-007608d4788b	ERROR	Invoke Error 	{"errorType":"Error","errorMessage":"Unable to determine event source based on event.","stack":["Error: Unable to determine event source based on event.","    at getEventSourceNameBasedOnEvent (/var/task/node_modules/@vendia/serverless-express/src/event-sources/utils.js:88:9)","    at proxy (/var/task/node_modules/@vendia/serverless-express/src/configure.js:38:51)","    at handler (/var/task/node_modules/@vendia/serverless-express/src/configure.js:99:12)","    at Object.handler (/var/task/node_modules/apollo-server-lambda/dist/ApolloServer.js:51:27)"]}

⚙️ Environment

  • Installation: Vercel
  • Ackee version: develop
@electerious electerious changed the title Vercel/Serverless broken after apollo-server upgrade to develop Vercel/Serverless broken after apollo-server upgrade on develop Jan 9, 2022
@electerious
Copy link
Owner Author

Related: apollographql/apollo-server#6005

apollo-server-lambda is designed to be run on Lambda. Vercel is not Lambda

@tkw1536
Copy link
Contributor

tkw1536 commented Feb 28, 2022

Is there any particular reason for not staying on apollo-server-lambda==v2.25.3 (or whatever the latest 2.x version is)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants