-
Notifications
You must be signed in to change notification settings - Fork 732
Open
Description
This issue pertains to the following package(s):
- GraphQL Playground - Electron App
- GraphQL Playground HTML
- GraphQL Playground
- GraphQL Playground Express Middleware
- GraphQL Playground Hapi Middleware
- GraphQL Playground Koa Middleware
- GraphQL Playground Lambda Middleware
What OS and OS version are you experiencing the issue(s) on?
macOS Mojave 10.14
What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?
1.7.0
What is the expected behavior?
When I have an AWS AppSync GraphQL API protected by an API_KEY (set in the x-api-key http header), the subscription should connect to the websocket properly.
What is the actual behavior?
An error is received, being unable to connect:
{
"error": "Could not connect to websocket endpoint wss://REDACTED.appsync-api.ap-southeast-2.amazonaws.com/graphql. Please check if the endpoint url is correct."
}
I believe this is occurring because the API key isn't sent, and thus it receives a 401 unauthorized response.
What steps may we take to reproduce the behavior?
Create an AWS AppSync GraphQL API protected with an API_KEY and try and subscribe to it.
ksimons, danieladams456, vicary, ferdingler, Adrxx and 5 more
Metadata
Metadata
Assignees
Labels
No labels