cancel
Showing results for 
Search instead for 
Did you mean: 

Error while consuming DOX Document Information Extraction API - JKU of token is not trusted

former_member12580
Discoverer
0 Kudos

Hello,

I am trying to consume DOX Document Information Extraction API by the following steps

- Activate the Document Information Extraction in Booster

- A service key is created which has clientid, clientsecret, authentication url.

- Get Authorization Bearer token from authentication url above successfully (https://xxxxxx.authentication.us10.hana.ondemand.com/oauth/token?grant_type=client_credentials) with clientid and clientsecret.

However, I cannot consume the API in https://aiservices-dox.cfapps.eu10.hana.ondemand.com/document-information-extraction/v1/ or even I have tried https://aiservices-trial-dox.cfapps.eu10.hana.ondemand.com/document-information-extraction/v1/

I always get the response message "message": "JKU of token is not trusted" - 401 : Unauthorized.

Could you please help me about it?

Thank you so much.

Accepted Solutions (1)

Accepted Solutions (1)

juliana_morais
Advisor
Advisor
0 Kudos

Hi Thuc Dinh,

To consume the Document Information Extraction APIs using Swagger UI, follow the tutorial mission https://developers.sap.com/mission.cp-aibus-extract-document-enrich-data.html and don't forget to "Authorize Swagger UI" as described in https://developers.sap.com/tutorials/cp-aibus-dox-swagger-ui.html.

You can also access the Document Information Extraction UI application by following the tutorial: https://developers.sap.com/tutorials/cp-aibus-dox-booster-app.html.

Best regards,

Juliana

former_member12580
Discoverer
0 Kudos

Hi Juliana Morais,

Thank you for your information, actually I followed your instruction, however, it didn't work. Now, it is working, don't know which is the root cause.

Answers (1)

Answers (1)

juliana_morais
Advisor
Advisor
0 Kudos

Hi Thuc Dinh,

I'm glad it's working now. Bear in mind that the token is valid for 12 hours. After that, you'll need to generate a new one and "Authorize Swagger UI" once again.

Best regards,

Juliana