<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Why multi part request body PDF document is failing in my Integration (extension changed)</title><link>https://community.appian.com/discussions/f/integrations/26639/why-multi-part-request-body-pdf-document-is-failing-in-my-integration-extension-changed</link><description>Hi, 
 I&amp;#39;ve created an Integration component and I have a PDF to send to a remote REST API (by POST method). 
 So I&amp;#39;ve created an Appian document, and I&amp;#39;ve upload a PDF file (Test1.pdf) as it. 
 When I call the remote API, I get an error in the response</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Why multi part request body PDF document is failing in my Integration (extension changed)</title><link>https://community.appian.com/thread/104715?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 19:06:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b7fda1f-4b43-466b-bafb-061c8166fd44</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/18/pastedimage1669316767835v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why multi part request body PDF document is failing in my Integration (extension changed)</title><link>https://community.appian.com/thread/104713?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 18:59:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be8ae06d-b7d4-43e8-80d2-4b54254d8e48</guid><dc:creator>cedric02</dc:creator><description>&lt;p&gt;Stefan, I&amp;nbsp;could obtain the solution : the remote API has a bug&amp;nbsp;: the error message sent&amp;nbsp;was inappropriate, they are going to change it.&lt;br /&gt;Here I am reassured&amp;nbsp;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/263a.svg" title="Relaxed"&gt;&amp;#x263a;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why multi part request body PDF document is failing in my Integration (extension changed)</title><link>https://community.appian.com/thread/104598?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 15:36:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7262ab47-2000-48e4-88d7-d66f549ee1d6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;True ... is there some other system in between? I mean, a request from Appian goes a different route than from your local machine using Postman.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why multi part request body PDF document is failing in my Integration (extension changed)</title><link>https://community.appian.com/thread/104596?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 15:30:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98922630-4370-46cf-a26f-e83463f22bb8</guid><dc:creator>cedric02</dc:creator><description>&lt;p&gt;Thank you Stefan, but in this case why I don&amp;#39;t have the same issue in Postman ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why multi part request body PDF document is failing in my Integration (extension changed)</title><link>https://community.appian.com/thread/104594?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 15:25:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55b873c6-357a-4217-a56c-9e3a6c27e6e6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This looks good to me. I am not sure about the PDF format. I assume this also uses some kind of compression. If this other system now checks the binary content for a ZIP signature, this might lead to issues. But this is just guessing !?!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why multi part request body PDF document is failing in my Integration (extension changed)</title><link>https://community.appian.com/thread/104593?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 15:22:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:590dfca1-9387-40f1-a294-7916fd0e978b</guid><dc:creator>cedric02</dc:creator><description>&lt;p&gt;I&amp;#39;ve just saw the encoding&amp;nbsp;field (gzip), but not any&amp;nbsp;Zip document type for the requested param :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;POST /my-ws/rest/v1/documents/upload HTTP/1.1&lt;br /&gt;Content-Type: multipart/form-data; boundary=TnQmfygKfP801A_kE1bGL-7YAFk_k6gl9&lt;br /&gt;Content-Length: 36084&lt;br /&gt;Host: my-host.fr&lt;br /&gt;Connection: Keep-Alive&lt;br /&gt;User-Agent: Appian&lt;br /&gt;Accept-Encoding: gzip,deflate&lt;/p&gt;
&lt;p&gt;--TnQmfygKfP801A_kE1bGL-7YAFk_k6gl9&lt;br /&gt;Content-Disposition: form-data; name=&amp;quot;document&amp;quot;; filename=&amp;quot;Test1.pdf&amp;quot;&lt;br /&gt;Content-Type: application/pdf&lt;br /&gt;Content-Transfer-Encoding: binary&lt;/p&gt;
&lt;p&gt;Binary content not shown for document, Test1.pdf (33.94 KB).&lt;/p&gt;
&lt;p&gt;--TnQmfygKfP801A_kE1bGL-7YAFk_k6gl9&lt;br /&gt;Content-Disposition: form-data; name=&amp;quot;comment&amp;quot;&lt;br /&gt;Content-Type: text/plain; charset=UTF-8&lt;br /&gt;Content-Transfer-Encoding: 8bit&lt;br /&gt;test 1&lt;/p&gt;
&lt;p&gt;--TnQmfygKfP801A_kE1bGL-7YAFk_k6gl9&lt;br /&gt;Content-Disposition: form-data; name=&amp;quot;label&amp;quot;&lt;br /&gt;Content-Type: text/plain; charset=UTF-8&lt;br /&gt;Content-Transfer-Encoding: 8bit&lt;br /&gt;SAS1&lt;/p&gt;
&lt;p&gt;--TnQmfygKfP801A_kE1bGL-7YAFk_k6gl9&lt;br /&gt;Content-Disposition: form-data; name=&amp;quot;meta&amp;quot;; filename=&amp;quot;Test1.xml&amp;quot;&lt;br /&gt;Content-Type: application/xml&lt;br /&gt;Content-Transfer-Encoding: binary&lt;/p&gt;
&lt;p&gt;Binary content not shown for document, Test1.xml (&amp;lt; 1 KB).&lt;/p&gt;
&lt;p&gt;--TnQmfygKfP801A_kE1bGL-7YAFk_k6gl9--&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why multi part request body PDF document is failing in my Integration (extension changed)</title><link>https://community.appian.com/thread/104592?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 15:13:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e357c735-806e-46ac-b1cb-124330dae015</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you check the outgoing headers in the HTTP request? Do they include any hint on the ZIP document type or file name?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>