You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a query that is about 12k characters long. I am getting server errors of the "unexpected end of input" flavor, followed by a panic in the response unmarshall operation. Empirically, I can see that if I reduce the query length to 7362 characters (at least in my case, on my configuration) the query goes through without error. I'm guessing I'm running into a buffer length issue of 8k including socket overhead, but I don't really know.
Is there a limit on the length of the query? Or something I need to do to cause it to send multiple chunks (frames?) to represent the entire query? Note that I can execute this from the apache gremlin console without error, so I believe the query itself is well-formed.
The code looks approximately like this (the somewhat ugly template-generated query is omitted here).
client, err := grammes.DialWithWebSocket("ws://127.0.0.1:8182")
if err != nil {
fmt.Printf("Error while creating client: %s\n", err.Error())
}
defer client.Close()
query := ` ... super long query goes here ...`
res, err := client.ExecuteStringQuery(query)
Perhaps I am just missing a configuration step?
The text was updated successfully, but these errors were encountered:
I have a query that is about 12k characters long. I am getting server errors of the "unexpected end of input" flavor, followed by a panic in the response unmarshall operation. Empirically, I can see that if I reduce the query length to 7362 characters (at least in my case, on my configuration) the query goes through without error. I'm guessing I'm running into a buffer length issue of 8k including socket overhead, but I don't really know.
Is there a limit on the length of the query? Or something I need to do to cause it to send multiple chunks (frames?) to represent the entire query? Note that I can execute this from the apache gremlin console without error, so I believe the query itself is well-formed.
The code looks approximately like this (the somewhat ugly template-generated query is omitted here).
Perhaps I am just missing a configuration step?
The text was updated successfully, but these errors were encountered: