serverless-appsync/serverless-appsync-simulator

Error: UnauthorizedException: Missing authorization

skix123 opened this issue · 3 comments

A few seconds after running sls offline start (no additional action required) the following error occurs:

Error: UnauthorizedException: Missing authorization

This error keeps occurring every few seconds.

Note that the API works correctly and I'm able to make graphql requests and receive results.

It is weird that you are able to execute queries with that error.
The Exception is thrown here, I believe.
It might be worth debugging to try to find what is going on around these lines.

Looks like you are using Cognito. Do you send an Authorization header with the request?

Looks like you are using Cognito. Do you send an Authorization header with the request?

Yes, authorization header with jwt.

But it's not about Cognito, the same error occurs with API_KEY method

Well... it turned out I had a frontend project running in my browser that wanted to make a websocket connection with the API 🙈