claudiajs / claudia-bot-builder

Create chat bots for Facebook Messenger, Slack, Amazon Alexa, Skype, Telegram, Viber, Line, GroupMe, Kik and Twilio and deploy to AWS Lambda in minutes
https://claudiajs.com/claudia-bot-builder.html
MIT License
1.84k stars 253 forks source link

Executing against an alias other than LATEST isn't working #113

Closed ian-vitaexmachina closed 6 years ago

ian-vitaexmachina commented 6 years ago

I've manually combed over the API Gateway stage variables, and the link to the lambda function, and the alias to the lambda function does seem to be inheriting the same role as what is used for LATEST.

Any clues?

gojko commented 6 years ago

this might be due to how you set up the custom authoriser. can you create a minimal project demonstrating the problem so we can investigate? we use --version staging etc almost every day, so that part definitely works ok, and the culprit is somewhere else.

ian-vitaexmachina commented 6 years ago

Ok cool. Yeah it definitely looked like the customer authenticator was erroring internally.

I removed the need for the authoriser, and the STAGING path worked fine, as you point out.

Anyway, I tore the whole API down and recreated it (using the latest version of claudia api builder) - and it works just fine now.

Thanks for your reply.