Closed gauravkr75 closed 1 month ago
Hi @gauravkr75 ,
Thanks you for raising this. We are aware of this issue in the xssec library and it is currently being worked on by the team. Please use 3.15.0 for now. @finkmanAtSap @jjtang1985
Hi @gauravkr75 ,
We released a canary version with the fix. You can try it out by setting this in your package.json:
"@sap-cloud-sdk/connectivity": "canary"
.
We will likely release a new minor version sometime next week.
Hi @deekshas8,
Thanks for looking into this issue. I tested with the canary version and it is working fine now.
Hi @gauravkr75
We have now released a new minor version 3.17.0.
Describe the bug We are using SAP Cloud SDK with CAP. When we are trying to call an on-premise service using cloud-sdk, we are getting the error:
Error: Could not fetch client credentials token for service of type connectivity: XsuaaService requires uaadomain inside credentials
. This issue started coming since we upgraded the cloud sdk from version3.15.0
to3.16.0
It seems the issue is caused because the connectivity service credentials does not contain
uaadomain
property and these credentials are being passed to theXsuaaService
class of@sap/xssec
npm package which looks for this property and then throws an error. Please check the Screenshots section to see this flow.To Reproduce Steps to reproduce the behavior:
Expected behavior Receive the response without any errors
Screenshots This screenshot explains the process flow and where it fails.
Used Versions:
node -v
:v20.12.2
npm -v
:10.5.0
3.16.0
Code Examples
Log file If applicable, add your log file or related error message. Again, please remove your sensitive information.
Full Log:
Impact / Priority For now we have downgraded the version to
3.15.0
so its working but it would be great if it can be fixed soon.Affected development phase: e.g. Getting Started, Development, Release, Production
Impact: e.g. No Impact, Inconvenience, Impaired, Blocked
Timeline: e.g. Go-Live is in 12 weeks.
Additional context Add any other context about the problem here.