<?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>Question Re: Error with getting token when executing API call in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/error-with-getting-token-when-executing-api-call/qaa-p/13945821#M4893566</link>
    <description>Any solution to this problem ? Error Details com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException: Status code:400; Reason:invalid grant type: , cause: java.lang.IllegalArgumentException: Status code:400; Reason:invalid grant type:</description>
    <pubDate>Fri, 22 Nov 2024 15:54:09 GMT</pubDate>
    <dc:creator>satheesh_hai</dc:creator>
    <dc:date>2024-11-22T15:54:09Z</dc:date>
    <item>
      <title>Error with getting token when executing API call</title>
      <link>https://community.sap.com/t5/technology-q-a/error-with-getting-token-when-executing-api-call/qaq-p/12745827</link>
      <description>&lt;P&gt;Tutorials: &lt;A href="https://developers.sap.com/tutorials/cp-starter-isuite-api-management.html" target="test_blank"&gt;https://developers.sap.com/tutorials/cp-starter-isuite-api-management.html&lt;/A&gt; &lt;BR /&gt;-------------------------- &lt;BR /&gt; &lt;BR /&gt;When following this tutorial, there is a 500 error when getting the auth token via the OAuth access policy. Testing the token endpoint with Postman, I receive&lt;/P&gt;{ "error": "invalid_request", "error_description": "Missing grant type"
  &lt;P&gt;}&lt;/P&gt;
  &lt;P&gt;It is missing the grant_type=client_credentials payload in thegetoauthtoken step. I added the following to the &amp;lt;ServiceCallout&amp;gt;:&lt;/P&gt;
  &lt;P&gt;&amp;lt;Payload contentType="application/x-www-form-urlencoded"&amp;gt;grant_type=client_credentials&amp;lt;/Payload&amp;gt; &lt;/P&gt;
  &lt;P&gt;This eliminates the above error, but I still get a 500 error : An internal server error occured: The MPL ID for the failed message is : AGSQ1x3o51owaNCdcApVRyFI0reA&lt;/P&gt;
  &lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 22:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-with-getting-token-when-executing-api-call/qaq-p/12745827</guid>
      <dc:creator>arthurperry3</dc:creator>
      <dc:date>2023-06-19T22:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error with getting token when executing API call</title>
      <link>https://community.sap.com/t5/technology-q-a/error-with-getting-token-when-executing-api-call/qaa-p/12745828#M4783953</link>
      <description>&lt;P&gt;Hello Arthur,&lt;/P&gt;&lt;P&gt;Can you goto cloud integration monitoring and see what error you are getting?&lt;/P&gt;&lt;P&gt;The MPL id mentioned in APIM response is from Cloud integration.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 02:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-with-getting-token-when-executing-api-call/qaa-p/12745828#M4783953</guid>
      <dc:creator>Sriprasadsbhat</dc:creator>
      <dc:date>2023-06-20T02:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error with getting token when executing API call</title>
      <link>https://community.sap.com/t5/technology-q-a/error-with-getting-token-when-executing-api-call/qaa-p/12745829#M4783954</link>
      <description>&lt;P&gt;com.sap.it.rt.adapter.http.api.exception.HttpResponseException: An internal server error occured: Failure converting a node of class javax.xml.transform.sax.SAXSource: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog..  Happening in the Content Modifier step.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 15:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-with-getting-token-when-executing-api-call/qaa-p/12745829#M4783954</guid>
      <dc:creator>arthurperry3</dc:creator>
      <dc:date>2023-06-20T15:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error with getting token when executing API call</title>
      <link>https://community.sap.com/t5/technology-q-a/error-with-getting-token-when-executing-api-call/qaa-p/13945821#M4893566</link>
      <description>Any solution to this problem ? Error Details com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException: Status code:400; Reason:invalid grant type: , cause: java.lang.IllegalArgumentException: Status code:400; Reason:invalid grant type:</description>
      <pubDate>Fri, 22 Nov 2024 15:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-with-getting-token-when-executing-api-call/qaa-p/13945821#M4893566</guid>
      <dc:creator>satheesh_hai</dc:creator>
      <dc:date>2024-11-22T15:54:09Z</dc:date>
    </item>
  </channel>
</rss>

