AWS lambda example returns `Internal Server Error`
maschlr opened this issue · comments
HI!
I've deployed the AWS example. All steps succeed and I can see the lambda function + the API gateway in the AWS console.
Testing further via Postman given the examples in the Telegram Bot API FAQ, I receive a Internal Server Error
(POST
ing to random enpoints on the same AWS domain gives a Not found
).
Is the example still functional?
Found the error, my mistake: the environment variable was not loaded.
There's a simple plugin for serverless that loads everything defined in .env
. I see I cannot open PRs on this repo. Maybe add that plugin to the example?
PRs are open; fork the repo, make your changes, and you'll see a prompt to PR it back. You can also click the pencil icon in a file and it'll automatically nudge you to fork.