cancel
Showing results for 
Search instead for 
Did you mean: 

Connection with Hybris Marketing Trial account not working.

Former Member
0 Kudos

I am doing a POC with Hybris marketing . Created a trail account on hybris marketing.

Hybris version 6.2.

I am done with the back office configuration and added a recommendation component on apparel site Home Page.

But that component is not getting rendered giving following error in logs.

ERROR [hybrisHTTP21] [ODataClientService] Error occurred while getting CSRF token and cookie java.io.IOException: Server returned HTTP response code: 401 for URL: https://my300451.s4hana.ondemand.com/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV/$metadata?saml2=disable... at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876) ~[?:1.8.0_112] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474) ~[?:1.8.0_112] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) ~[?:1.8.0_112] at de.hybris.platform.sap.core.odata.util.ODataClientService.getCSRFAndCookie(ODataClientService.java:572) [classes/:?]

Any input here if am missing some configuration?

former_member224482
Active Contributor
0 Kudos

Error 401 is login related. The user or password could be incorrect.

Also consider upgrading to a newer release as sap.core.odata.util is being deprecated in the latest release.

Former Member
0 Kudos

I have created the Hybris Marketing trial account and able to login to my account from browser https://accounts.sap.com/saml2/idp/sso/accounts.sap.com which after login redirect me to https://my300451.s4hana.ondemand.com. On Debug ODataClientService method getCSRFAndCookie makes following url https://my300451.s4hana.ondemand.com/sap/opu/odata/sap/cuan_import_srv/$metadata?saml2=disabled
Which is not working from application as well as from Rest client.

Is there any additional permission required to hit the url the following URL https://accounts.sap.com/saml2/idp/sso/accounts.sap.com

former_member224482
Active Contributor
0 Kudos

The parameter saml2=disabled disable the SSO login redirection and enable basic http 1.1 login (Basic Auth). When using basic auth with a browser, there is a popup for user & password.

Usually UI users do not have the same authorizations as technical users.

Former Member
0 Kudos

Understood, So what could be issue? how I can further troubleshoot the issue?

former_member224482
Active Contributor
0 Kudos

If the user does not have access to https://my300451.s4hana.ondemand.com/sap/opu/odata/sap/cuan_import_srv/$metadata?saml2=disabled , you must create a valid one.

Accepted Solutions (0)

Answers (2)

Answers (2)

sreearumilli
Participant
0 Kudos

I am also having same 401 error with my url.

https://my300451.s4hana.ondemand.com/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV/?saml2=disabled I tried the logins details of FUI user and it's saying failed.is there anyway I can create the user? Can you let me know ,How you fix this issue Thanks, Sreenivas A.

former_member224482
Active Contributor
0 Kudos

Product recommendation scenarios are not enabled with the yMKT trial account.
If fact, no commerce integration scenarios are enabled with such trial yMKT server.

Former Member
0 Kudos

,

How can add user to have permission to https://my300451.s4hana.ondemand.com/sap/opu/odata/sap/cuan_import_srv/$metadata?saml2=disabled .

I have access to the url https://my300451.s4hana.ondemand.com by creating a trial account on Hybris Marketing, I am under the assumption that implicitly i will be able to hit the related services to my account.

Or please let me know if I have to do some settings on my Hybris marketing cloud account or raise some other request.

former_member224482
Active Contributor
0 Kudos

From what I understood, the Fiori UI users have different set of permissions then the technical users.