cancel
Showing results for 
Search instead for 
Did you mean: 

Workzone notifications - 401 unauthorized

Pavansj
Explorer
0 Kudos

Hello All,

We are attempting to send a notification from a CAP application to the Workzone notification. We followed the documentation exactly as shown below.
https://help.sap.com/docs/build-work-zone-standard-edition/sap-build-work-zone-standard-edition/enab...
However when we configure the destination we get 401 unauthorized when we test it from the destination configuration.
We even attempted to trigger the notification from the CAP application and still get the authorization error.

PS: We just regenerated the credentials and updated the destination end point and it still does not work.

Best Regards,
Pavan
sap-btp-co.png

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

Hi Pavan,

the connection test in the destination UI is unfortunately not very reliable. I would suggest you try the credentials first with this REST Client Script (after maintaining the values in a .env file):

https://github.com/gregorwolf/bookshop-demo/blob/main/tests/notification.http

and then consume it in your CAP app using this NPM Module:

https://github.com/cap-js/notifications

Best Regards
Gregor