<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Uploading APP trough Rest API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Uploading-APP-trough-Rest-API/m-p/98053#M1360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;We are trying to upload an app to the qlik server as part of a new import feature requested by one of our clients. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;We're trying to use the REST API Upload App as documented here: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-App-Upload-App.htm" style="color: #007fc0; font-size: 13px; background: #ffffff; font-family: arial, verdana, sans-serif;" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-App-Upload-App.htm&lt;/A&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;After making a post request to the server, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;the app (qvf file, converted to a filestream) should be uploaded to the server. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;The post request used is: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;await _qrsClient.Post("/qrs/app/upload?name=" + fileName + "&amp;amp;xrfkey=(key)", filestring); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;where filestring is the streamread-file of the QVF &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;The Contentheader has been added to the request as following: _client.Headers.Add("Content-Type", "application/vnd.qlik.sense.app"); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;We might be doing something wrong with providing the body. But we couldn't find any examples so far. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;What is the actual result? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;Error: The remote server returned an error: (500) Internal Server Error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;Screenshots below show the request and method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;&lt;IMG alt="Test1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214186_Test1.png" style="height: auto; width: auto;" /&gt;&lt;/SPAN&gt;&lt;IMG alt="Test2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/214187_Test2.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2018 15:02:29 GMT</pubDate>
    <dc:creator>joshuapierlo</dc:creator>
    <dc:date>2018-09-21T15:02:29Z</dc:date>
    <item>
      <title>Uploading APP trough Rest API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Uploading-APP-trough-Rest-API/m-p/98053#M1360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;We are trying to upload an app to the qlik server as part of a new import feature requested by one of our clients. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;We're trying to use the REST API Upload App as documented here: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-App-Upload-App.htm" style="color: #007fc0; font-size: 13px; background: #ffffff; font-family: arial, verdana, sans-serif;" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-App-Upload-App.htm&lt;/A&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;After making a post request to the server, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;the app (qvf file, converted to a filestream) should be uploaded to the server. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;The post request used is: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;await _qrsClient.Post("/qrs/app/upload?name=" + fileName + "&amp;amp;xrfkey=(key)", filestring); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;where filestring is the streamread-file of the QVF &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;The Contentheader has been added to the request as following: _client.Headers.Add("Content-Type", "application/vnd.qlik.sense.app"); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;We might be doing something wrong with providing the body. But we couldn't find any examples so far. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;What is the actual result? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;Error: The remote server returned an error: (500) Internal Server Error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;Screenshots below show the request and method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;&lt;IMG alt="Test1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214186_Test1.png" style="height: auto; width: auto;" /&gt;&lt;/SPAN&gt;&lt;IMG alt="Test2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/214187_Test2.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 15:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Uploading-APP-trough-Rest-API/m-p/98053#M1360</guid>
      <dc:creator>joshuapierlo</dc:creator>
      <dc:date>2018-09-21T15:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading APP trough Rest API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Uploading-APP-trough-Rest-API/m-p/98054#M1361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid I can't help you with that 500-error, but I have an example that shows how to upload apps using that endpoint. You can find it here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/tree/master/Qlik.Sense.RestClient/Examples/AppUpload" title="https://github.com/kolsrud/qlik_rest_sdk/tree/master/Qlik.Sense.RestClient/Examples/AppUpload"&gt;https://github.com/kolsrud/qlik_rest_sdk/tree/master/Qlik.Sense.RestClient/Examples/AppUpload&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I think of it, it could it be that that 500 error comes from the fact that you are using UploadString instead of UploadData which means you are trying uploading a string instead of a byte stream. That's a guess though...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 06:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Uploading-APP-trough-Rest-API/m-p/98054#M1361</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-09-24T06:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading APP trough Rest API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Uploading-APP-trough-Rest-API/m-p/98055#M1362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi øystein,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you kindly for your response.&lt;/P&gt;&lt;P&gt;The code you provided is very useful, I noticed that my Post method was different.&lt;/P&gt;&lt;P&gt;I was using a string task rather than a byte[] task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a new Post method (PostApp) based off of your example and everything works fine now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joshua&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 11:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Uploading-APP-trough-Rest-API/m-p/98055#M1362</guid>
      <dc:creator>joshuapierlo</dc:creator>
      <dc:date>2018-09-25T11:53:07Z</dc:date>
    </item>
  </channel>
</rss>

