Serverless-offline: Incorrect provider configuration generates unhelpful error message

Created on 2 Feb 2019  路  5Comments  路  Source: dherault/serverless-offline

I'm transitioning an application from SAM to serverless with serverless-offline. My configuration was lacking a runtime definition, so when I attempted to start the simulated backend via serverless start the command failed with Cannot read property 'startsWith' of undefined.

I had to enable debug logging and use the stack trace to look at the source to determine the cause and solution, which I feel hurts usability.

All 5 comments

Thanks fro the PR, I'll lint it if you won't.

same issue. How to fix it? I am using google cloud

Serverless-offline is only for AWS sorry :)

Serverless-offline is only for AWS sorry :)

Is this confirmed? i was trying to get my gcloud functions running locally just like i did it with another serverless application in AWS lambda. The AWS lambda works like a charm! but i saw a lot of gaps in the serverless framework implementation for gcloud functions like this one.
Hope this can be included and solved in the next serverless releases =)

That's sad to hear that it only works with AWS. It's kind of the whole point of the serverless framework to be provider-independent

Was this page helpful?
0 / 5 - 0 ratings

Related issues

conradoramalho picture conradoramalho  路  3Comments

stonebraker picture stonebraker  路  3Comments

aldofunes picture aldofunes  路  3Comments

Dong9769 picture Dong9769  路  4Comments

JimLynchCodes picture JimLynchCodes  路  4Comments