Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Npgsql.NpgsqlException (0x80004005): Unknown message code: 0 #2281
View log in my linux server, i see some error.
It will be stop my api after few minutes
Further technical details
Npgsql version: 188.8.131.52
Other details about my project setup:
This probably indicates that your application has concurrency issues - you may be trying to using the same NpgsqlConnection object from two different threads at the same time. Carefully review your connection management strategy to make sure it is only ever accessed by one thread at a time.
Otherwise, this could be a bug in Npgsql, but we'd need to see a code sample that reproduces the error to do anything about it.
Try to work on a minimal code sample which reproduces the error. If the error doesn't occur deterministically (e.g. because of a race condition), you can try running your code in a tight loop until it does trigger.