-
Notifications
You must be signed in to change notification settings - Fork 55
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
InvalidOperationException during INatsObjStore.PutAsync
#672
Comments
I believe the issue is in this method:
Specifically:
It uses a statically defined
Which is when passed to
Is marked as read only here:
And on subsequent calls it is reused again but already as read only. Thus we get an exception here: nats.net/src/NATS.Client.Core/NatsHeaders.cs Line 410 in 04b2dc1
Am I correct in my assumptions? |
Here is a repro project. |
Observed behavior
In our main project we get aforementioned exception during upload a binary object (about 23 Mb.). The exception occurs on subsequent uploads (after first one succeeds). Each upload creates a new
INatsObjContext
using a previousINatsConnection
(it's a singleton). The code is as simple as:The exception we get is:
The main problem is that we can't reproduce this case in a separate simple project.
I understand it's hard to diagnose in this case so I wanted to ask if there is something specific I should be looking for to create a repro?
Expected behavior
Uploading should end without exceptions.
Server and client version
Client:
2.5.3
Server:
2.10.20
Here are some logs (removed most irrelevant parts):
Not sure if it's relevant but in my case server is accessed through a slow VPN connection. Uploading takes about 40 sec. or so.
The text was updated successfully, but these errors were encountered: