Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS SAM Missing authentication token error on sample hello world app

Tags:

aws-lambda

I'm setting up AWS SAM using VS Code on my Windows 10 development machine. When I create and start the sample hello world application I get Missing Authentication Token in the browser. See screenshot below.

Any suggestions on how to resolve would be appreciated.

enter image description here

like image 851
Timothy Vogel Avatar asked Jan 01 '23 20:01

Timothy Vogel


1 Answers

You're simply calling a not-existing endpoint. There is a log line in your output which states how to access your function:

2019-07-01 21:56:50 Mounting HelloWorldFunction at http://127.0.0.1:3000/hello [GET]

So if you open http://127.0.0.1:3000/hello instead of http://127.0.0.1:3000/ you should get the output you're expecting.

like image 102
Dunedan Avatar answered Jan 13 '23 11:01

Dunedan