cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding SAP Build Apps Authentication issue

Sugandha
Discoverer
0 Kudos

Hello all,

I am Sugandha. I have been using SAP Build Apps for quite some time and I am facing issues while configuring SAP BTP destination REST API integration. When I am testing the inputs, it gives me error 404. I have followed all the steps given in the below tutorial (attaching the link). - https://developers.sap.com/tutorials/build-apps-workflow-trigger.html#23115af3-8c2e-487a-b50a-ecdc7c... (please refer to step no.5 for my query. I am stuck on that). As per the error, my definition ID is incorrect but I am just copy-pasting it.

Attaching an image for your refernce - 

Sugandha_0-1708770727077.png

 

Please guide me. Thank you in advance.

 

navalega0109
Participant
0 Kudos
Hi Bearer token is missing therefore the error is displayed.
Sugandha
Discoverer
0 Kudos
Please elaborate @navalega0109
View Entire Topic
Dinu
Contributor
0 Kudos

If you have created destination as described in Create Destination to Trigger Process From any Service / Step 3 , the url of the destination may be wrong. Use the url from SAP Build Lobby / Control Tower / Unattended Triggers/ [Your Process Trigger] / View (refer to: Run the Sales Order Business Process / Step 3 )

Also: It is better to create the destination with Authentication as OAuth2JWTBearer. Then "Started By" for tasks will get correct value.

Sugandha
Discoverer
0 Kudos
It still is giving the same error - 404
Dinu
Contributor
0 Kudos
If you could share the response as text, I can have a look.
Sugandha
Discoverer
0 Kudos

here is the response -
{ "message": "Request failed with status code 404", "name": "AxiosError", "stack": "AxiosError: Request failed with status code 404\n at Sr (https://d8efaf43trial.design-time.us10.apps.build.cloud.sap/assets/chunks/axios-fa73bef5.js:135:1037...n at https://d8efaf43trial.design-time.us10.apps.build.cloud.sap/assets/chunks/useDestinations-cc2f603b.j...n at ne.request (https://d8efaf43trial.design-time.us10.apps.build.cloud.sap/assets/chunks/axios-fa73bef5.js:137:3098)", "config": { "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false }, "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "env": {}, "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/json", "Authorization": "Bearer undefined" }, "url": "", "method": "post", "data": "{\"definitionId\":\"us10.d8efaf43trial.salesorderexperimental.orderProcessing\",\"context\":{\"salesorderdetails\":{\"orderAmount\":123456789}}}" }, "code": "ERR_BAD_REQUEST", "status": 404 }

Dinu
Contributor
0 Kudos
Check the response of the request in the Network tab of Developer Tools of your browser for a request that ends with your destination name. The response of this request has more details about the error.