<?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: Can't call API by dynatrace but succeed with postman in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225759#M29022</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can see an entry about &lt;A title="Troubleshooting HTTP Monitor Error/ Health Status Codes" href="https://community.dynatrace.com/t5/Troubleshooting/Troubleshooting-HTTP-Monitor-Error-Health-Status-Codes/tac-p/218180#M271" target="_blank" rel="noopener"&gt;Troubleshooting HTTP Monitor Error/ Health Status Codes&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Are you sure header and payload in body are correct?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 06:36:24 GMT</pubDate>
    <dc:creator>AntonPineiro</dc:creator>
    <dc:date>2023-10-18T06:36:24Z</dc:date>
    <item>
      <title>Can't call API by dynatrace but succeed with postman</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225744#M29020</link>
      <description>&lt;P&gt;Hi Team, We're planning to use dynatrace to do the API monitoring. I'm facing one issue - I'm able to call one API successfully with postman but failed with Dynatrace. Request url and http hearder and requestbody are all same.&amp;nbsp; But I got error all the time from dynatrace. I checked the error as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Quirina_0-1697594958349.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14712i21EB29B5CDB03F4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Quirina_0-1697594958349.png" alt="Quirina_0-1697594958349.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The script setting as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Quirina_1-1697595071988.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14713iFFB4927A80ED6225/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Quirina_1-1697595071988.png" alt="Quirina_1-1697595071988.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could anyone help to check why it often fail, please?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 06:58:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225744#M29020</guid>
      <dc:creator>Quirina</dc:creator>
      <dc:date>2023-10-23T06:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't call API by dynatrace but succeed with postman</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225759#M29022</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can see an entry about &lt;A title="Troubleshooting HTTP Monitor Error/ Health Status Codes" href="https://community.dynatrace.com/t5/Troubleshooting/Troubleshooting-HTTP-Monitor-Error-Health-Status-Codes/tac-p/218180#M271" target="_blank" rel="noopener"&gt;Troubleshooting HTTP Monitor Error/ Health Status Codes&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Are you sure header and payload in body are correct?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 06:36:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225759#M29022</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2023-10-18T06:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't call API by dynatrace but succeed with postman</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225769#M29023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are given the wrong Service name.&lt;/P&gt;&lt;P&gt;In the first step, use the API (&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-entities-list?_ga=2.31375679.1688602524.1697440282-6151948.1694588859&amp;amp;_gac=1.121583994.1697549154.Cj0KCQjw4bipBhCyARIsAFsieCzZ7eDSuTu3xQqyEYVhCUY5E4rk5ipWZ1AUDoWEvu9lR2HUjXyz5kYaAgaDEALw_wcB&amp;amp;_gl=1*1sdpeb7*_ga*NjE1MTk0OC4xNjk0NTg4ODU5*_ga_1MEMV02JXV*MTY5NzYxMjc5MS43NC4xLjE2OTc2MTI5ODcuMC4wLjA." target="_self"&gt;GET entities list&lt;/A&gt;) to retrieve the list of services. Then use the name (entityId) of the service you want to use using the name that was returned after the API (it differs slightly from what you see in the GUI)&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;curl -L -X GET '&lt;A href="https://mySampleEnv.live.dynatrace.com/api/v2/entities?entitySelector=type(%22SERVICE%22),mzId(%229130632296508575249%22)&amp;amp;fields=lastSeenTms,properties.serviceTechnologyTypes" target="_blank" rel="noopener"&gt;https://mySampleEnv.live.dynatrace.com/api/v2/entities?entitySelector=type(%22SERVICE%22),mzId(%229130632296508575249%22)&amp;amp;fields=lastSeenTms,properties.serviceTechnologyTypes&lt;/A&gt;' \&lt;BR /&gt;-H 'Authorization: Api-Token xxx'&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"totalCount"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;52&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"pageSize"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;50&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"nextPageKey"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"AQArdHlwZSgiU0VSVklDRSIpL"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"entities"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"&lt;STRONG&gt;entityId"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"SERVICE-1125C375A187D27A"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;"displayName"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"dotNetBackend_easyTravel_x64"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"lastSeenTms"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;1590609632865&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"properties"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"serviceTechnologyTypes"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt; &lt;SPAN class=""&gt;"IIS app pool"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"ASP.NET"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"DotNet"&lt;/SPAN&gt; &lt;SPAN class=""&gt;]&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Radek&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 07:14:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225769#M29023</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-10-18T07:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't call API by dynatrace but succeed with postman</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225912#M29044</link>
      <description>&lt;P&gt;I checked the headers and found the root cause is due to lack of one header. Thank you so much for the reminder!!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 01:05:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225912#M29044</guid>
      <dc:creator>Quirina</dc:creator>
      <dc:date>2023-10-19T01:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can't call API by dynatrace but succeed with postman</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225928#M29050</link>
      <description>&lt;P&gt;Perfect and welcome!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 06:51:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Can-t-call-API-by-dynatrace-but-succeed-with-postman/m-p/225928#M29050</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2023-10-19T06:51:34Z</dc:date>
    </item>
  </channel>
</rss>

