-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
RequestPushMessageDeliveryAsync Fails with Unable to write content to request stream; content would exceed Content-Length. #30
Comments
Hi @twurm, Looks like it's coming from .NET |
Hi @twurm, I've added .NET 8 to tests targets and they all passed. I've also migrated the demo project to .NET 8 and tested it - it worked as expected. This suggests to me that the issue you are experiencing is context-specific. I can try to investigate it, but I'll need as many details as possible - ideally a minimal reproduction. |
@tpeczek I've been walking back changes all day it looks at the moment like when we switched from NewtonSoft to System.Text.Json as part of the upgrade we introduced the error. I haven't nailed down the serialization issue just yet but going back to NewtonSoft for serialization has solved the issue. Sorry to have tied up your time into this. Thanks for the help and the quick response. When we nail down the serialization issue I'll update the ticket for anyone else that stumbles across it. |
@tpeczek I've been walking back changes all day it looks at the moment like when we switched from NewtonSoft to System.Text.Json we introduced the error. I haven't nailed down the serializationn issue just yet but going back to NewtonSoft for serialization has solved the issue. Sorry to |
No problem, in fact I should have add .NET 8 to tests targets anyway so it's good that you've motivated me.
Please do. I'm honestly intrigued myself. Also it might be something that the library should sanitize or validate, so there might be some work to do here on my end. |
We've been using the lib for a long time. In our .Net 8 upgrade testing we started seeing the following:
Any thoughts on what Content is blowing past the Content-Length. We see this issue with both Microsoft and Google's push notification services.
The text was updated successfully, but these errors were encountered: