<?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: SAP PO Error : java.lang.RuntimeException: HTTP Communication Error. Could not retrieve oAuth Token in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-po-error-java-lang-runtimeexception-http-communication-error-could-not/qaa-p/12569234#M4712964</link>
    <description>&lt;P&gt;The REST adapter actually doesn't support OAuth 2.0 refresh token grant&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 10:06:10 GMT</pubDate>
    <dc:creator>alex_bundschuh</dc:creator>
    <dc:date>2022-09-23T10:06:10Z</dc:date>
    <item>
      <title>SAP PO Error : java.lang.RuntimeException: HTTP Communication Error. Could not retrieve oAuth Token</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-po-error-java-lang-runtimeexception-http-communication-error-could-not/qaq-p/12569233</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I have a scenario with PO - REST consuming a Snowflake REST Service.&lt;/P&gt;
  &lt;P&gt;The complete scenario is S4 ( RFC ) -&amp;gt; PO -&amp;gt; REST (as syncronous scenario)&lt;/P&gt;
  &lt;P&gt;The snowflake developers give me a test in postman and it works like this:&lt;/P&gt;
  &lt;P&gt;First, i use the configuration to get a token with the next parameters:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2097491-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;The Auth URL is one and Access Token URL other end point, i have 2 autnetication credentials:&lt;/P&gt;
  &lt;P&gt; 1st: client ID with Client Secret (this is configured in the Authorization tab in postman)&lt;/P&gt;
  &lt;P&gt;2nd: username with a password (for a web page ¿? )&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2097492-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;When in postman I push over the "Get New Access Token" I see the next web page:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2097494-3.png" /&gt;&lt;/P&gt;
  &lt;P&gt;After I use the usr and password ( the second pair ) , I see this options to use the token and do a POST to the REST Service:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2097496-5.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2097497-6.png" /&gt;&lt;/P&gt;
  &lt;P&gt;In PO 7.5 ( SP 24 ), on the REST Receiver adapter channel I have the next configuration :&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2097499-7.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2097500-8.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2097501-9.png" /&gt;&lt;/P&gt;
  &lt;P&gt;but, when I try to run the scenario, I get the Next error message : " java.lang.RuntimeException: HTTP Communication Error. Could not retrieve oAuth Token "&lt;/P&gt;
  &lt;P&gt;What is wrong? &lt;/P&gt;
  &lt;P&gt;Is not possible to connect at snowflake?&lt;/P&gt;
  &lt;P&gt;Thanks to all for your help and time.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 15:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-po-error-java-lang-runtimeexception-http-communication-error-could-not/qaq-p/12569233</guid>
      <dc:creator>JuanManuelC</dc:creator>
      <dc:date>2022-09-22T15:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAP PO Error : java.lang.RuntimeException: HTTP Communication Error. Could not retrieve oAuth Token</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-po-error-java-lang-runtimeexception-http-communication-error-could-not/qaa-p/12569234#M4712964</link>
      <description>&lt;P&gt;The REST adapter actually doesn't support OAuth 2.0 refresh token grant&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 10:06:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-po-error-java-lang-runtimeexception-http-communication-error-could-not/qaa-p/12569234#M4712964</guid>
      <dc:creator>alex_bundschuh</dc:creator>
      <dc:date>2022-09-23T10:06:10Z</dc:date>
    </item>
  </channel>
</rss>

