cancel
Showing results for 
Search instead for 
Did you mean: 

JWT validation error

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 (3)

Answers (3)

aishwarya_m_n
Discoverer

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.

shahDarshan
Newcomer
0 Kudos

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 Kudos

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