-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 error on running serverless invoke local #5
Comments
@quantuminformation Are you using multiple AWS credentials? Or do you have multiple credentials? This usually happens in that case. |
Yeah I have 2 profiles: same error even with --profile personal
|
@quantuminformation The Did you specify the profile in your |
Yup , get same error:
and in ~/.aws/credentials:
for some reasons image uploads dont work |
@quantuminformation Do these credentials have access to the DynamoDB that was previously created? |
[ Personal ] IAM user has the admin policy on this account. Does invoke local do anything to the live AWS account and data? |
@quantuminformation It invokes your Lambda function locally but any resources used inside it are the ones on live. |
I'm going to test the react app against the api, |
Had this same problem. Changed region to my real ones in serverless.yml and create.js |
I also am seeing this error or something very similar. I tried to go ahead and deploy the serverless package and got the same error with Webpack. I'll keep digging, but wanted to post the issue I'm seeing.
|
@dougharling You can debug these by adding a |
|
Found the following steps to be the solution to the exact problem -
Worked for me! |
I had this error. It was because I forgot to create the table in DynamoDB |
When running
$ serverless invoke local --function create --path mocks/create-event.json
from
https://serverless-stack.com/chapters/add-a-create-note-api.html
I get
I added a log and get:
{ UnrecognizedClientException: The security token included in the request is invalid.
The text was updated successfully, but these errors were encountered: