Replies: 4 comments
-
@Yalpe we are facing the same issue as described by you.. cheers |
Beta Was this translation helpful? Give feedback.
-
Did you manage to resolve this? We are also observing a very similar error, when we access a Mongo database. Again this happens only on a production environment. This has only started since migrating to Net 7. MongoDB.Driver.MongoConnectionException: An exception occurred while receiving a message from the server. I am uncertain why this has started, and of the best way to resolve (it is not clear we can simply retry the Mongo query, as the write - in this case - could have been partially successful.) |
Beta Was this translation helpful? Give feedback.
-
No we have not resolved this as it is mostly an annoyance and not critical (at least, we hope its not). We are also using MongoDB but on .NET 6.0. You don't have the same kernel error code however (quick google search shows its related to IO completion ports?). It does not seem related to my issue at all. |
Beta Was this translation helpful? Give feedback.
-
This indicates that the server didn't respond for a long time. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I need help troubleshooting a SocketException that happens fairly often in our production environment (obviously nowhere else).
Wrapped inside is this:

This exception is logged from an HttpClient call that times out. I don't know exactly why the socket would be closed (by whom?). The code is running in docker on alpine and on .NET 6.0.
Is it happening because the server is throttling the request and not returning a 429 in under 100 seconds and then the task gets cancelled? Is there anything that we can do on our end to handle this better?
To me it seems not related to throttling because we had this happen over multiple different servers in all our pods. I'm thinking there's something wrong with our connections (maybe at the OS level?).
Beta Was this translation helpful? Give feedback.
All reactions