π Bug Report: DotNet sdk throws InvalidOperationException when answer from API has no content
KillTrot opened this issue Β· comments
Cedric commented
π Reproduction steps
Delete a document from the database using the dotnet sdk
π Expected behavior
No exception
π Actual Behavior
System.InvalidOperationException: "The given header was not found."
π² Appwrite version
Different version (specify in environment)
π» Operating system
Linux
𧱠Your Environment
Appwrite: 1.5.x
DotNet SDK: 0.8.1
π Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
π’ Have you read the Code of Conduct?
- I have read the Code of Conduct
Cedric commented
The exception happens because the Header "Content-Type" is not present for responses from the Server without content.
The .GetValues
throws, as the header does not exist.
I will make a pull-request changing to .TryGetValues
if thats okay