Skip to Content

Leonardo IoT Thing OData (using JWT) error in SAP Analytics Cloud error

Hi,

Currently I have a setup in postman where I can get a JWT token via OAuth 2.0 Client credentials that works perfectly. (Access Token URL, Client ID and Secret are retreived from the service key).

When I call 'https://appiot-mds.cfapps.eu10.hana.ondemand.com/Things' with the JWT token as a header, I get a list of all my Things. (yes, my things are created through the OData Thing Modeler)

When I try to recreate the setup in SAP Analytics Cloud, the next error message is returned:

{"result":"{\"error\":{\"code\":\"ERROR_CONNECT_TO_SERVER\",\"rawError\":\"An error occured while connecting to the data source: Response from external server has status code of 404\",\"params\":[\"Response from external server has status code of 404\"]}}"}

I also have another OData url, but this one needs useridp to authenticate, and when I try to call this one with the OAuth 2.0 Client Credentials setup, I get an Access denied error

{"result":"{\"error\":{\"code\":\"ERROR_CONNECT_TO_SERVER\",\"rawError\":\"An error occured while connecting to the data source: Access was denied.\",\"params\":[\"Access was denied.\"]}}"}

Any ideas or suggestions on how to connect the thing modeler oData to SAC?

Thanks in advance,

Best Regards

errorsac.png (8.2 kB)
test.jpg (24.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 24 at 07:52 AM

    I think I found the problem.. Due to the loads of endpoints (https://help.sap.com/viewer/080fabc6cae6423fb45fca7752adb61e/1904c/en-US/dcaa38dda9e14fbc887a3ebda36aec98.html) I used a REST endpoint by accident..

    Add comment
    10|10000 characters needed characters exceeded