graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Issue with subscriptions with a depth greater than 20.

Open machship-bsuryn opened this issue 4 years ago • 2 comments
trafficstars

When I have a subscription which has more than 20 associations it is failing. If I use graphql playground the subscription is completing correctly. Also just to note I have switched out different associations and also run the same subscription as a query, and use ExecuteQuery and it has worked. I am getting the below error:

Object reference not set to an instance of an object.

with the stacktrace:

   at GraphQL.Client.Http.Websocket.GraphQLHttpWebSocket.<ReceiveWebsocketMessagesAsync>d__39.MoveNext()

machship-bsuryn avatar Jun 15 '21 05:06 machship-bsuryn

I found the cause of the issue, it seems my query is to large. Do you have or plan to have any internal query compression? removing white space etc?

machship-bsuryn avatar Jun 18 '21 15:06 machship-bsuryn

Is there any inbuild method for splitting large messages over websockets?

machship-bsuryn avatar Jun 22 '21 23:06 machship-bsuryn