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
I have a GraphQL API that has two indexes, one runs Express (index.js) and the other runs Serverless (indexServerless.js). For the Serverless I use serverless-offline to test the API out of Serverless. I tested both Express and Serverless locally and both of them are working. If I try to deploy to Serverless through serverless login and serverless deploy I receive the following message from Serverless CLI:
An error occurred: GraphqlLambdaFunction - Uploaded file must be a non-empty zip (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException
Which is strange cause I have not changed the API since the last deploy so I contacted Serverless support but they throw GraphQL into the conversation and told me that they could not help me, any idea on how to fix it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a GraphQL API that has two indexes, one runs Express (index.js) and the other runs Serverless (indexServerless.js). For the Serverless I use
serverless-offline
to test the API out of Serverless. I tested both Express and Serverless locally and both of them are working. If I try to deploy to Serverless throughserverless login
andserverless deploy
I receive the following message from Serverless CLI:And this one from Cloudformation:
Which is strange cause I have not changed the API since the last deploy so I contacted Serverless support but they throw GraphQL into the conversation and told me that they could not help me, any idea on how to fix it?
Here's the serverless.yml:
The indexServerless.js:
And the graphql.js, which export both configurations, i.e Express and Serverless:
I tried to exclude node_modules by setting exclude on serverless.yml and update the Node version, but no changes.
Here's the Serverless CLI version:
And the Node dependencies:
Beta Was this translation helpful? Give feedback.
All reactions