422 Unprocessable Entity error uploading attachment



已于 2022年7月08日 发布

Using the latest .Net Zendesk API version 3.12.0, I'm getting the

"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 "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");

                    ZenFile file = new ZenFile
                    {
                        FileName = attachment                        
                    };
                    api.Attachments.UploadAttachment(file);

 

What am I missing to get this error?

 

 


0

1

1 条评论

Hi Kevin! That wrapper isn't something that we own, however you can check here for links to the repo and documentation for it so that you can contact the owners.

0


登录以发表评论。

找不到所需的内容?

新建帖子