<?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 API /api/v1.0/onpremise/users is responding 200 but throws an error in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/API-api-v1-0-onpremise-users-is-responding-200-but-throws-an/m-p/187506#M1918</link>
    <description>&lt;P&gt;Hi, I'm using python scripts to call the cluster APIs.&lt;/P&gt;
&lt;P&gt;The APIs are working fine, they are doing the expected configurations but I have a strange behavior with the last use-case.&lt;/P&gt;
&lt;P&gt;As you can see, the API "/api/v1.0/onpremise/users" is responding 200, I can see the configuration applied but is throwing some kind of exception so the GitlabCI job is failing:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elodie_lam_4-1654011788376.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5906i72A6E61734581D77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elodie_lam_4-1654011788376.png" alt="elodie_lam_4-1654011788376.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elodie_lam_5-1654011802643.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5907i1FC499270D4264C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elodie_lam_5-1654011802643.png" alt="elodie_lam_5-1654011802643.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code I'm using is the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elodie_lam_2-1654011632717.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5901i3764598106483EEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elodie_lam_2-1654011632717.png" alt="elodie_lam_2-1654011632717.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elodie_lam_3-1654011632627.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5904i49A0B5F6BABF0A39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elodie_lam_3-1654011632627.png" alt="elodie_lam_3-1654011632627.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm using the same mechanism for all API calls in the scripts, for the others the behavior is normal when the call is 200 there is no Error! message. Except in the case I described.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help me understand why?&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;Elodie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2022 09:11:53 GMT</pubDate>
    <dc:creator>elodie_lam</dc:creator>
    <dc:date>2022-06-01T09:11:53Z</dc:date>
    <item>
      <title>API /api/v1.0/onpremise/users is responding 200 but throws an error</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-api-v1-0-onpremise-users-is-responding-200-but-throws-an/m-p/187506#M1918</link>
      <description>&lt;P&gt;Hi, I'm using python scripts to call the cluster APIs.&lt;/P&gt;
&lt;P&gt;The APIs are working fine, they are doing the expected configurations but I have a strange behavior with the last use-case.&lt;/P&gt;
&lt;P&gt;As you can see, the API "/api/v1.0/onpremise/users" is responding 200, I can see the configuration applied but is throwing some kind of exception so the GitlabCI job is failing:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elodie_lam_4-1654011788376.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5906i72A6E61734581D77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elodie_lam_4-1654011788376.png" alt="elodie_lam_4-1654011788376.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elodie_lam_5-1654011802643.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5907i1FC499270D4264C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elodie_lam_5-1654011802643.png" alt="elodie_lam_5-1654011802643.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code I'm using is the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elodie_lam_2-1654011632717.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5901i3764598106483EEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elodie_lam_2-1654011632717.png" alt="elodie_lam_2-1654011632717.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elodie_lam_3-1654011632627.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5904i49A0B5F6BABF0A39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elodie_lam_3-1654011632627.png" alt="elodie_lam_3-1654011632627.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm using the same mechanism for all API calls in the scripts, for the others the behavior is normal when the call is 200 there is no Error! message. Except in the case I described.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help me understand why?&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;Elodie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 09:11:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-api-v1-0-onpremise-users-is-responding-200-but-throws-an/m-p/187506#M1918</guid>
      <dc:creator>elodie_lam</dc:creator>
      <dc:date>2022-06-01T09:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: API /api/v1.0/onpremise/users is responding 200 but throws an error</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-api-v1-0-onpremise-users-is-responding-200-but-throws-an/m-p/188067#M1922</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/14930"&gt;@elodie_lam&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you are exiting with sys.exit(1) even though there was not error. Usually exit codes != 0 are treated as an error. The pipeline &lt;EM&gt;thinks&lt;/EM&gt; something failed.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 14:14:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-api-v1-0-onpremise-users-is-responding-200-but-throws-an/m-p/188067#M1922</guid>
      <dc:creator>mark_bley</dc:creator>
      <dc:date>2022-06-08T14:14:41Z</dc:date>
    </item>
  </channel>
</rss>

