Missing Auth Token using API Gateway

0

I understand this is likely a common issue. I've got a resource, I've followed the AWS youtube video about this, others re:Post's about this, etc.

My API gateway resource points to a LAMBDA function. When I use the Test function on either the LAMBDA or the API gateway, it is successful. However, whenever accessing the webpage or curling a POST request (with AND without an API key), I get {"message":"Missing Authentication Token"}.

Please may I get some assistance with this?

2개 답변
0

Hi,

The API Gateway APIs can return "Missing Authentication Token" error for multiple reasons, so I recommend that you take a look at the following Knowledge Center post to identify what's causing the error, and apply the most appropriate solution.

If none of the recommended actions solve your problem, I suggest you add more information so that we can help you to find the cause.

profile picture
전문가
답변함 10달 전
  • Hi Mikel, I appreciate the assistance! I have already followed the knowledge center post to the best of my ability. I've verified I'm sending a json to the correct resource. As far as I know, I've turned off all Authorisation on the API and LAMBDA function. I also haven't modified any gateway response. I've added the resource policy to allow everything ("Resource": "arn:aws:execute-api:us-east-1:326280663162:5mkjwr5c31/api//").

    It's interesting. If I send my request via cmd curl on the {url}/api/api it says it couldn't resolve application.

    Is there any particular information I should provide? I wish I could provide screenshots or speak directly with someone!

  • Hi,

    Assuming that are using a REST API, with a Regional API endpoint, that has been correctly deployed and that there is no authentication method configured... Could you check that the Method, URL and the path you are calling is indeed correct? https://{restapi-id}.execute-api.{region}.amazonaws.com/{stageName}/{resource}.

0

Sometimes I noticed this can be just to to the fact that stages do not get deployed, thus make sure your api gw stage is indeed deployed

profile picture
전문가
답변함 10달 전
  • I can confirm it's definitely deployed!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠