<?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 Playground generate a CURL request with missing required headers in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/playground-generate-a-curl-request-with-missing-required-headers/m-p/323726#M10727</link>
    <description>&lt;P&gt;When running Repository.Query command on Playground it works properly.
Then I was playing with CURL request generated at Playground CURL Request UI tab it failed.&lt;/P&gt;
&lt;P&gt;Returning a really unhelpful message&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{"entity-type":"exception","code":"java.lang.NullPointerException","status":500,"message":null}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It took me a while to figure out the issue and it ended up being the lack of Content-type header.&lt;/P&gt;
&lt;P&gt;Adding  &lt;CODE&gt;-H "Content-Type: application/json"&lt;/CODE&gt; fixed and provided the proper result.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2017 06:00:00 GMT</pubDate>
    <dc:creator>Eduardo_Rodrigu</dc:creator>
    <dc:date>2017-01-31T06:00:00Z</dc:date>
    <item>
      <title>Playground generate a CURL request with missing required headers</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/playground-generate-a-curl-request-with-missing-required-headers/m-p/323726#M10727</link>
      <description>&lt;P&gt;When running Repository.Query command on Playground it works properly.
Then I was playing with CURL request generated at Playground CURL Request UI tab it failed.&lt;/P&gt;
&lt;P&gt;Returning a really unhelpful message&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{"entity-type":"exception","code":"java.lang.NullPointerException","status":500,"message":null}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It took me a while to figure out the issue and it ended up being the lack of Content-type header.&lt;/P&gt;
&lt;P&gt;Adding  &lt;CODE&gt;-H "Content-Type: application/json"&lt;/CODE&gt; fixed and provided the proper result.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 06:00:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/playground-generate-a-curl-request-with-missing-required-headers/m-p/323726#M10727</guid>
      <dc:creator>Eduardo_Rodrigu</dc:creator>
      <dc:date>2017-01-31T06:00:00Z</dc:date>
    </item>
  </channel>
</rss>

