admin管理员组文章数量:1314851
We are consuming a SOAP based web service from a S/4HANA On-prem system inside an SAP CAP service using sap-cloud-sdk API's coupled with BTP destinations and cloud connector.
Ref:
sap-cloud-sdk/http-client & sap-cloud-sdk/connectivity version - 3.25.0.
The service runs fine after deploying to Cloud Foundry and we are able to execute and get results the same day. But when we execute the same service the very next day it fails with http status code 407- Proxy Authentication failed. And once we redeploy/restage the CAP app to CF again the service starts working like usual.
We have noticed below error in our logs that Bearer token sent to the connectivity proxy is expired.
We are executing the service via Job Scheduler and also tried with postman generating a new Token but somehow the initial token is getting cached.
(Issued At)1736950306 (1/15/2025 3:11:46 PM)exp (Expiration Time) 1736993506 (1/16/2025 3:11:46 AM)2025-01-17T16:55:25.116+0000 [APP/PROC/WEB/0] STDOUT 'Proxy-Authorization': 'Bearer.
We are consuming a SOAP based web service from a S/4HANA On-prem system inside an SAP CAP service using sap-cloud-sdk API's coupled with BTP destinations and cloud connector.
Ref: https://community.sap/t5/technology-blogs-by-sap/consuming-soap-web-services-in-sap-cloud-application-programming-model-cap/ba-p/13522820
sap-cloud-sdk/http-client & sap-cloud-sdk/connectivity version - 3.25.0.
The service runs fine after deploying to Cloud Foundry and we are able to execute and get results the same day. But when we execute the same service the very next day it fails with http status code 407- Proxy Authentication failed. And once we redeploy/restage the CAP app to CF again the service starts working like usual.
We have noticed below error in our logs that Bearer token sent to the connectivity proxy is expired.
We are executing the service via Job Scheduler and also tried with postman generating a new Token but somehow the initial token is getting cached.
(Issued At)1736950306 (1/15/2025 3:11:46 PM)exp (Expiration Time) 1736993506 (1/16/2025 3:11:46 AM)2025-01-17T16:55:25.116+0000 [APP/PROC/WEB/0] STDOUT 'Proxy-Authorization': 'Bearer.
Share Improve this question edited Jan 30 at 12:00 Sandra Rossi 13.7k6 gold badges25 silver badges56 bronze badges asked Jan 30 at 11:30 Athul RamAthul Ram 911 silver badge7 bronze badges1 Answer
Reset to default 0There is currently a bug in the Cloud SDK where proxy tokens are improperly cached.
To fix this, we currently recommend disabling the cache. E.g. like this:
.execute({ destinationName: 'DESTINATION', jwt: 'JWT', useCache: false })
本文标签: sap cloud sdkSAP CAPM service failing with http 407 Proxy Authentication failed ErrorStack Overflow
版权声明:本文标题:sap cloud sdk - SAP CAPM service failing with http 407 Proxy Authentication failed Error - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741969363a2407742.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论