cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP PO Error : java.lang.RuntimeException: HTTP Communication Error. Could not retrieve oAuth Token

JuanManuelC
Explorer
0 Likes
3,009

Hi experts,

I have a scenario with PO - REST consuming a Snowflake REST Service.

The complete scenario is S4 ( RFC ) -> PO -> REST (as syncronous scenario)

The snowflake developers give me a test in postman and it works like this:

First, i use the configuration to get a token with the next parameters:

The Auth URL is one and Access Token URL other end point, i have 2 autnetication credentials:

1st: client ID with Client Secret (this is configured in the Authorization tab in postman)

2nd: username with a password (for a web page ¿? )

When in postman I push over the "Get New Access Token" I see the next web page:

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:

In PO 7.5 ( SP 24 ), on the REST Receiver adapter channel I have the next configuration :

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 "

What is wrong?

Is not possible to connect at snowflake?

Thanks to all for your help and time.

Accepted Solutions (1)

Accepted Solutions (1)

alex_bundschuh
Product and Topic Expert
Product and Topic Expert
0 Likes

The REST adapter actually doesn't support OAuth 2.0 refresh token grant

Alex

Answers (0)