-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
"Connection Closed before request completed" error when update with long string on SQL Server #11182
Comments
Shouldn't you be doing |
After further testing, it looks like the problem is the length of string. I changed column to STRING type. I did the update from GraphQL playground and got error
when the signature string is around 3950 chars long.
I am using
and here is my GraphQL resolver:
There is no problem when reading the long string back from the database. |
Looks like increase the tedious packet size could solve the problem.
But I don't know how it will affect the perfornance. Also whether I can set it just on a query by query basis. |
Was the error thrown from |
If I set the packet size to 32768 in the connection options, then the problem will be solved. It doesn't make sense to me. Why the packets are not re-assembled at the server side when the packet size is 4096 (default). And clearly the packets are re-assembled at the client side all the time. |
It looks like a problem with tedious. I file a new issue there. |
I got this error when moving to a Heroku instance with Node v12+ (I moved from an Azure instance with Node 8.1+). Changing the Node engine on my app and deploying again solved the issue. |
Is there a plan to have Sequelize use the fix with tedious v6.2.1+? |
@lmshaffe Sorry, I didn't understand, what do you mean? |
I think what he meant to say is that the issue has been resolved by the tedious team in the version 6.2.1 according to this: tedious issue 923 I myself encountered this same issue just now, had an app using Sequelize 4.38.0 and Tedious 2.6.4 After further testing however, I found that updating both Sequelize and Tedious to their latest versions, 6.5.1 and 6.7.0 respectively, runs everything smoothly and as expected. I can now run long queries without specifying the packetSize option. |
I have a table in SQL Server with a column of type varbinary. I use STRING.BINARY to model the column in Sequelize.
I use GraphQL to create service. So the signature column uses base64 string type in the API. In the get() method, I convert the binary data to base64 string and it is working fine. But how do I set the base64 string to binary type in the set() method?
The text was updated successfully, but these errors were encountered: