enisdenjo / graphql-ws

Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.
https://the-guild.dev/graphql/ws
MIT License
1.75k stars 162 forks source link

Invalid message Error in subscription #451

Closed amani-eric closed 1 year ago

amani-eric commented 1 year ago

Screenshot Screenshot 2023-02-27 at 21 23 29

Expected Behaviour

It should not throw error and subscribe to data

Actual Behaviour

It throws Invalid message error without any more details on why the error is occuring and get disconnected

Debug Information

The subscription configuration seems fine and connection get successfull initially. It disconnect whenever this error occurs .

Screenshot 2023-02-28 at 09 55 16

Further Information

I'm using NestJS v9.0.0 graphql-ws v5.11.3