Error 406 while uploading attachments #574
-
Hi, since 2023-03-01 error 406 appears when uploading attachments. Version used is 3.0.11. `Exception: The remote server returned an error: (406) Not Acceptable.Error content: , stacktrace: at ZendeskApi_v2.Core.RunRequest(String resource, String requestMethod, Object body, Nullable |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I think you should try these steps:
|
Beta Was this translation helpful? Give feedback.
-
Hi
Additionally ensure your file is within the size limits for your plan.
Also, in your request I see text/html in your content type, is that correct?
Run the unit test what elizabeth gave you
test with images compare with fiddler the request sended
|
Beta Was this translation helpful? Give feedback.
-
Hi, thank you for your answer. However, prior to 2023-03-01 attachments with these content types have been successful: |
Beta Was this translation helpful? Give feedback.
Please, create a test case that replicates the issue and send a pull request.
here is the current test case that is passing.
https://github.com/Speedygeek/ZendeskApi_v2/blob/94082b6d7a81bbbf127c7a443fd783b6e9f1e764/tests/ZendeskApi_v2.Tests/AttachmentTests.cs#LL17C1-L26C1
Note: The Content-Type must contain a recognized MIME t…