Lewis Eccles
05/01/2022, 6:46 AM"error": "Unexpected token < in JSON at position 0"
The 2nd screenshot is attempting to load the interface within the browser.
The only way I can interact with the GraphQL api is via the AWS console "AppSync" console where it works fine, loads the schema, I can perform queries & mutations etc. As well as use the Appsync console to authenticate users
Any one else ran into anything similar?
------ UPDATE ------
Ok quite a silly mistake on my part. I figured out how to load the UI for GraphQL in SST Console - I had to manually put my output of the GraphQL URL into SST Console, and additionally add a HTTP header to my request.
{
"x-api-key": "input output API key Here"
}
Frank
Lewis Eccles
05/02/2022, 7:53 AM