2
votes

I'm creating a simple lambda function in AWS and wiring it with API gateway.

The issue, I'm having is that I'm getting "Missing Authentication Token" error response, while trying to reach created resource via HTTP, even I have "Authorization: NONE" defined in resource settings.

Here are the resource details:

enter image description here

Any reason, why Authorization option ignored? Did anyone had similar issue before?

2
try HTTPS - double check your URL is correct. Often times this has happened to me either over HTTP or i spelling error in the URL.jsw324

2 Answers

1
votes

Make sure you use the correct URL path for your stage. (Also make sure you deployed)

enter image description here

From the image above is how you can get the correct url.

0
votes

I have the similar issue: I have a public gateway "GET" API, which is working perfectly if I directly open it from the browser without authorization. But I get the 403 "Missing Authentication Token" error when I called it directly from a Java code:

HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
conn.setDoOutput(true);
conn.setRequestMethod("GET");
conn.setRequestProperty("Content-Type", "application/json");
//conn.setRequestProperty("Authorization", myJWTToken);

String result = getResponse(conn, mapper);
System.out.println(result);

But I succeed in Java when I removed that conn.setDoOutput(true) line