Serverless-stack-com: Comments: Debugging Serverless API Issues

Created on 7 Oct 2017  路  11Comments  路  Source: AnomalyInnovations/serverless-stack-com

Most helpful comment

@l0rdr4t In this chapter - https://serverless-stack.com/chapters/create-a-cognito-identity-pool.html we add a line to the auth role. Is that the one you had to do?

All 11 comments

Hi there!

Question for you. Might be a newbie one -

When I try to invoke the role in the policy simulator, I don't have the same options as you. Here's what I have: https://screencast.com/t/izAbP7wm Any idea why?

Trying to troubleshoot a status 403!

Thanks in advance!
-Holly

@hollyewhite Yeah it looks like they've changed the interface a bit. But I tried it just now with the same instructions in the tutorial and it worked.

screen shot 2017-11-09 at 1 39 00 pm

We'll update the screenshots soon. But let me know if this doesn't work for you.

Thank you @jayair! I appreciate it. I ended up having a credential issue. There are so many! I might hit you up for more questions though. This is my first time building a serverless app and honestly, I don't know how I would have figured it out without this tutorial. You're a rockstar.

I'm currently walking through this tutorial (awesome work, by the way). My apig-test was throwing a "403 Forbidden":

Message: 'User: arn:aws:sts::123456789012:assumed-role/Cognito_testAuth_Role/CognitoIdentityCredentials is not authorized to perform: execute-api:Invoke on resource: arn:aws:execute-api:ap-southeast-2:********5495:a1b2c3d4e5/prod/POST/notes' }

I had to edit the Cognito Auth_Role policy and add the ExecuteAPI service -- this made the API start working, and now I'm wondering if I did something wrong or a step is missing from the Role creation?

@l0rdr4t In this chapter - https://serverless-stack.com/chapters/create-a-cognito-identity-pool.html we add a line to the auth role. Is that the one you had to do?

@jayair Thanks for the reply, and yes -- now I know where I went wrong; user error and not the documentation!

In my project, the end user won't be uploading documents to an S3 bucket. I intentionally left out the Policy Action s3:* but accidentally left out Policy Action execute-api:Invoke, which was in the same code block.

@l0rdr4t Thanks for reporting back!

Hello I got this message, when I try to add new note.
"No credentials" Everbody know how to solve it?

@mbahfauz Can I see the full error?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jayair picture jayair  路  20Comments

quantuminformation picture quantuminformation  路  6Comments

Abdizriel picture Abdizriel  路  13Comments

jayair picture jayair  路  14Comments

jayair picture jayair  路  14Comments