-
Notifications
You must be signed in to change notification settings - Fork 10
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
UnexpectedMessageError: unexpected message type: 0x45 #261
Comments
Here is how we initialize the client and connect it to our service, if that helps: db, edb, dbErr := fooDb.NewFooDbConnection() // function code above
if dbErr != nil {
log.Fatal(dbErr)
}
defer edb.Close()
svc := service.NewFooSvc(db) |
For context, the message |
@fmoor since deploying the v0.13.5 edgedb-go library frontend hasn't noticed the server going down. It's possible this fixed it but I'll keep checking with them. Could it have been an error the client is now handling internally? |
Yes. The client retries certain errors if it is possible they would succeed on a second attempt. |
This hasn't been happening nearly as often anymore, but it is still happening. |
When this happens now do you still have to restart the process to get the connection to the database back? Or does it print this message, but continue to operate? |
@bmathisbrandcoders I pushed a branch with my best guess at a fix for this. Would you try building and deploying with that branch and reporting back if it makes a difference? go mod edit -replace github.com/edgedb/edgedb-go=github.com/edgedb/edgedb-go@debug-261 |
This time it seems to fix itself, our service just returns 503 for the request it happens in I just deployed your debug branch, hopefully that fixes it. |
@fmoor looks like your branch has fixed it entirely! |
Great. Thanks for working on this with me! I'll merge that fix and release it. |
The fix was released in v0.13.6 |
Describe the bug
Long running web services connected to a single edgedb instance will log this error, then time out during connection verification and must be restarted to function again.
Reproduction
This is the code that is timing out after the error message (dbConnectionError is never thrown)
This is how we're creating our db connection
Example of how we're calling the edgedb client (any one of these could throw the 0x45 error it isn't a specific request)
Expected behavior
Better error reporting? I'm unsure as to whether this is something I'm doing wrong or if this is a bug in the client library
Versions (please complete the following information):
edgedb-go
version: v0.12.0Additional context
I have deployed an upgrade to edgedb-go v0.13.5 and am waiting to see if there are still issues
The text was updated successfully, but these errors were encountered: