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

JWT validation error

dmytro_shapiro
Employee
Employee
2,935

Tutorials: https://developers.sap.com/tutorials/cp-cf-businessrules09-test-apis.html
--------------------------

Hi,

I'm getting status code 401 and JWT validation error in the header:

www-authenticate: Bearer error="invalid_token", error_description="JWT verification failed: Do not trust 'jku' token header.", error_uri="https://tools.ietf.org/html/rfc6750#section-3.1"

I made several attempts to configure the environment, while starting from scratch, but the result is the same.

Additional information:

endpoint: /v2/workingset-rule-services

request URL: https://bpmruleruntime.cfapps.eu10.hana.ondemand.com/rules-service/rest/v2/workingset-rule-services

clientid: "sb-clone-1da15af8-171b-4807-ace8-c20938a7025b!b42586|bpmrulebroker!b2018"

Payload:

{
  "RuleServiceId": "53ede73bb93147128459ee22b1eddec4",
  "Vocabulary": [
    {
      "Employee": {
        "IsFullTimeEmployee": true,
        "countryofCompany": "USA",
        "jobTitle": "Engineer II",
         "company": "ACE_USA"
       }
    }
  ]
}

Accepted Solutions (0)

Answers (4)

Answers (4)

aishwarya_m_n
Associate
Associate

This error might have been because of the mismatch in the region of your trial account and the URL being used. Change the runtime URL while configuring the environment in SAP API Business Hub to bpmruleruntime.rule.cfapps.us10.hana.ondemand.com if your trial account has region as US.

SunnyCH60
Explorer
0 Likes

HI 

I am getting the same error even with runtimeURL with US10. 

system connecting to: 

ry_sunny_0-1730816618610.png

Config for test environment at SAP API HUB: 

ry_sunny_1-1730816639372.png

 

shahDarshan
Discoverer
0 Likes

If you have your trial account in the US region and are getting this error, the solution is to change the URL(Runtimrurl) while setting the environment. Change the url to 'us10' instead of 'eu10'. Refer the image attached.

MauricioMiao
Contributor
0 Likes

I am getting the same error. Did you find a solution?