# help

Lewis Eccles

05/01/2022, 6:46 AM
Hey everyone, Been trying to work with AppSync on SST, ran into an issue where in the SST console - My GraphiQL interface doesn't seem to load via SST console in the browser or via directly visiting my https://<aws appsycn generatedurl>/graphql endpoint output by my stack. See attached screenshot of the SST console. Literally upon load it reports the error and also won't load any schema info
Copy code
"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.
Copy code
  "x-api-key": "input output API key Here"


05/01/2022, 10:20 PM
Hey @Lewis Eccles, if you used v1.0.0-beta.21 or later, the api key will be set automatically.

Lewis Eccles

05/02/2022, 7:53 AM
Thanks for that @Frank it's good to know 🙂 - I used the npx create sst app command so think I'll just be using latest stable release by default