websocketaws-appsync

AWS Appsync subscription with postman - No Protocol Error


I am using Postman to connect AWS Appsync subscription as per : https://docs.aws.amazon.com/appsync/latest/devguide/real-time-websocket-client.html

with the below config:

enter image description here

{ "payload": { "errors": [ { "message": "NoProtocolError", "errorCode": 400 } ] }, "type": "connection_error" }


Solution

  • The problem occurs due to a missing header:-

    Sec-WebSocket-Protocol = graphql-ws