{"action":"opened","issue":{"url":"https://api.github.com/repos/servant-app/JAWS/issues/21","labels_url":"https://api.github.com/repos/servant-app/JAWS/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/servant-app/JAWS/issues/21/comments","events_url":"https://api.github.com/repos/servant-app/JAWS/issues/21/events","html_url":"https://github.com/servant-app/JAWS/issues/21","id":99331264,"number":21,"title":"First-time install: executing the api/users/show fails with 401","user":{"login":"sdvinay","id":160229,"avatar_url":"https://avatars.githubusercontent.com/u/160229?v=3","gravatar_id":"","url":"https://api.github.com/users/sdvinay","html_url":"https://github.com/sdvinay","followers_url":"https://api.github.com/users/sdvinay/followers","following_url":"https://api.github.com/users/sdvinay/following{/other_user}","gists_url":"https://api.github.com/users/sdvinay/gists{/gist_id}","starred_url":"https://api.github.com/users/sdvinay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdvinay/subscriptions","organizations_url":"https://api.github.com/users/sdvinay/orgs","repos_url":"https://api.github.com/users/sdvinay/repos","events_url":"https://api.github.com/users/sdvinay/events{/privacy}","received_events_url":"https://api.github.com/users/sdvinay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-06T01:12:02Z","updated_at":"2015-08-06T01:12:02Z","closed_at":null,"body":"I ran through the installation guide.  I tried running the api/users/show locally first and it fails with 401 (I didn't install the JAWS client globally yet, but I don't expect that to be a problem):\r\n```\r\n$../../../cli/bin/jaws run\r\n****** JAWS: Running Lambda Function Locally...\r\n****** JAWS: Lambda Returned An Error:\r\n{ status: 401, message: 'Invalid or expired access token' }\r\n```\r\n\r\nI went back and checked the steps from the installation guide; I updated the .env file with my own values (I made up JWT_ISSUER and JWT_SECRET, and copied in AWS_ADMIN_KEY, AWS_ADMIN_SECRET_KEY, AWS_LAMBDA_ROLE), and I updated the model_user.js with my table name.  The only suspicious step was that when creating the role (\"jaws_lambda_role\"), the wizard asked me to select a \"role type\"; the installation guide didn't mention this step, so I guessed that I should use \"AWS Lambda\".\r\n\r\nAnything else I should check, or that I can try to help troubleshoot?"}}