-
Using the latest .Net Zendesk API version 3.12.0, I'm getting the following exception. "The remote server returned an error: (422) Unprocessable Entity.Error content: {"error":"AttachmentUnprocessable","description":Attachment file could not be processed."} I'm passing in a pdf file as an "attachment". It's failing on the UploadAttachment, but I'm passing in the file as a ZenFile. Here's the code portion that is failing. ZendeskApi api = new ZendeskApi("https://domain.zendesk.com/api/v2", "user", "password");
What am I missing to get this error? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are missing a few things like the data and the file name should be just the name you want in zendesk not the path. ZendeskApi_v2/tests/ZendeskApi_v2.Tests/AttachmentTests.cs Lines 16 to 26 in 7b9aa5a |
Beta Was this translation helpful? Give feedback.
You are missing a few things like the data and the file name should be just the name you want in zendesk not the path.
ZendeskApi_v2/tests/ZendeskApi_v2.Tests/AttachmentTests.cs
Lines 16 to 26 in 7b9aa5a