<?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 Re: QRS API POST errors - which log file? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-trace-QRS-API-POST-errors-in-Qlik-Sense-logs-which-log/m-p/1931774#M16804</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/156500"&gt;@Dave-Ampere&lt;/a&gt;, I would suggest you to set the logs to debug mode. On the other hand have you tried to use Postman tool to see what response you get from there?&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 13:36:47 GMT</pubDate>
    <dc:creator>Patricia_Silva</dc:creator>
    <dc:date>2022-05-17T13:36:47Z</dc:date>
    <item>
      <title>How to trace QRS API POST errors in Qlik Sense logs, which log file to look at?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-trace-QRS-API-POST-errors-in-Qlik-Sense-logs-which-log/m-p/1929375#M16775</link>
      <description>&lt;P&gt;Hi, I'm trying to develop some QRS API calls to automate some processes for QlikSense on Windows (Enterprise). GET calls are working OK, but POSTs and PUTs are not. I'm getting a 400 response back but without further information.&lt;/P&gt;
&lt;P&gt;As a first step, could you advise me the best place to look in the QlikSense logs for these calls? Also, do the logs need to be at a certain verbosity?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 20:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-trace-QRS-API-POST-errors-in-Qlik-Sense-logs-which-log/m-p/1929375#M16775</guid>
      <dc:creator>Dave-Ampere</dc:creator>
      <dc:date>2022-10-31T20:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: QRS API POST errors - which log file?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-trace-QRS-API-POST-errors-in-Qlik-Sense-logs-which-log/m-p/1931774#M16804</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/156500"&gt;@Dave-Ampere&lt;/a&gt;, I would suggest you to set the logs to debug mode. On the other hand have you tried to use Postman tool to see what response you get from there?&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 13:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-trace-QRS-API-POST-errors-in-Qlik-Sense-logs-which-log/m-p/1931774#M16804</guid>
      <dc:creator>Patricia_Silva</dc:creator>
      <dc:date>2022-05-17T13:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: QRS API POST errors - which log file?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-trace-QRS-API-POST-errors-in-Qlik-Sense-logs-which-log/m-p/1931894#M16809</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/89710"&gt;@Patricia_Silva&lt;/a&gt; , thanks. I do use Postman yes. The response doesn't carry enough information (a 400 code but little else).&lt;/P&gt;
&lt;P&gt;Thanks! Your help has helped me crack it:&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;I worked out it is the "System Level Log" that needed to be set to DEBUG and then I can see more information in the Repository Log folder, in the "Trace &amp;gt; System Repository" log.&lt;/P&gt;
&lt;P&gt;From there I could see the JSON payload was causing an exception in QlikSense. With a bit of trial and error I've got my payload JSON correct. Sorted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Some background details:&lt;/P&gt;
&lt;P&gt;I was testing the create flow (POST) to create a new custom property definition (as per the &lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/APIs/RepositoryServiceAPI/index.html?page=1178" target="_self"&gt;API docs for creating custom property&lt;/A&gt; ). Once I'd set the level to Debug, I could see my POST request and then the next line in the logs carries this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[RESTEngine.HandleException] Caught Newtonsoft.Json.JsonReaderException	Unexpected character encountered while parsing value: n. Path '', line 0, position 0.	   at Newtonsoft.Json.JsonTextReader.ParseValue()↵↓   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)↵↓   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)↵↓   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)↵↓   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)↵↓   at Qlik.Sense.Common.Serialization.JSONSerializer.Deserialize(String value, Type type, JsonSerializerSettings serializerSettings)↵↓   at Qlik.Sense.Common.Communication.REST.Server.RESTParser.ParseRequest(IHttpListenerRequestWrapper httpRequest, IHttpRecording httpRecording, IObjectCreator objectCreator, ParsedMethod parsedMethod)↵↓   at Qlik.Sense.Common.Communication.REST.Server.RESTEngine.&amp;lt;&amp;gt;c__DisplayClass26_0.&amp;lt;GetParsedRequest&amp;gt;b__0(ParsedMethod parsedMethod)↵↓   at System.Collections.Generic.List`1.ForEach(Action`1 action)↵↓   at Qlik.Sense.Common.Communication.REST.Server.RESTEngine.GetParsedRequest(IHttpListenerRequestWrapper request, IHttpRecording httpRecording, IObjectCreator objectCreator)↵↓   at Qlik.Sense.Common.Communication.REST.Server.RESTEngine.HandleRequest(IHttpListenerRequestWrapper httpRequest, IHttpListenerResponseWrapper httpResponse, IHttpRecording httpRecording)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 15:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-trace-QRS-API-POST-errors-in-Qlik-Sense-logs-which-log/m-p/1931894#M16809</guid>
      <dc:creator>Dave-Ampere</dc:creator>
      <dc:date>2022-05-17T15:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: QRS API POST errors - which log file?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-trace-QRS-API-POST-errors-in-Qlik-Sense-logs-which-log/m-p/1932783#M16814</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/156500"&gt;@Dave-Ampere&lt;/a&gt;, I am happy to know the issue could be solved, and also happy that you shared the solution you found &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 05:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-trace-QRS-API-POST-errors-in-Qlik-Sense-logs-which-log/m-p/1932783#M16814</guid>
      <dc:creator>Patricia_Silva</dc:creator>
      <dc:date>2022-05-19T05:32:23Z</dc:date>
    </item>
  </channel>
</rss>

