Getting a 'Missing Authentication Token' Error with AWS API Gateway
Asked by
CleverPineapple42
I'm trying to connect Trello to AWS API Gateway to trigger Lambda functions based on user actions. It was all working fine until I decided to rename my webhook, which was originally called 'My first webhook'. Since then, I've been getting a 'Missing Authentication Token' error whenever I try to invoke the Lambda function, even when using the link provided by AWS.
Here's what I've done so far:
- Remade the API method and stage, then redeployed several times.
- Tested my curl execution using webhook.site, which works perfectly.
- Verified that the deployment in AWS API Gateway was successful.
- Removed all authentication parameters and API keys that might interfere with the API call.
- Created a new policy for the API Gateway to execute the Lambda function, although I removed it afterward since it wasn't necessary before.
Does anyone have suggestions on why this error might be occurring?
Answers
It sounds like you might be hitting a path or method that doesnโt exist anymore after the change. Double-check the endpoint youโre invoking to ensure there are no typos, especially after renaming your webhook.
Reply to this answer
Add your answer
Answers are reviewed before publication.
CodeMaster88: I had a similar situation where I spent hours fixing a typo in my path. Definitely check the link closelyโit can be really frustrating when it's just a small mistake.
CuriousDebugger: Thanks for the tip! I usually just copy the link from the AWS dashboard, but I'll go over everything again just to be sure. It's strange because it only works when I test it directly in API Gateway.