New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Invalid message #348
Comments
As per the GraphQL over WebSocket Protocol, the The typings in Having said that - Just for extra context, main reason for not allowing |
So I'm using a BaaS - https://www.8base.com/ to build out my platform Okay - sure, so the a null payload is actually not allowed per say. So the solution would be to contact the 8base and make this point? |
That's right,
In case there's nothing you misconfigured - yes. You may also reference this issue to speed up the process. |
Thanks for the speedy support - I've let 8base know about this. |
**Screenshot
**
Expected Behaviour
I expected the @apollo/client to use this package to successfully set up a websocket subscription.
Actual Behaviour
It seems to successfully connect but then I get an Error: Invalid Message.
Debug Information
Apparently the error originates from common.ts. I'm not sure what part of the isMessage function this error is thrown - it looks as thought it may be from line 231 - in that
!hasOwnProperty would return false on
as the key does exist. It would return false on undefined, and is not object?
I.e, walking through the repo and creating a basic representation of the above:
Return value will be false? I may be mistaken but a null payload on a websocket connection ack should not be considered a failure?
Further Information
Trying to get a subscription working with @apollo/client and this package. this is my config:
Thanks for the support
The text was updated successfully, but these errors were encountered: