on 2021 Mar 01 10:36 AM
Hi,
I've cloned the repository here and I'm following the instruction to use this app as multi-tenant as described in the section "Deploy as Multitenant Application". However after having deployed my app to the Trial landscape, when trying to subscribe from a different subaccount to this app, I receive a "Subscription failed" error. Going deep into the error I see this:
{"subscriptions":[{"subdomain":"e4e45564portal","appName":"bookshop-java-public-e4e45564trial-dev","consumerTenantId":"881d838a-f28e-474f-90c2-c8348f963e98","globalAccountId":"bf4cb67e-7ed3-4154-b699-088e74780602","subaccountId":"881d838a-f28e-474f-90c2-c8348f963e98","state":"SUBSCRIBE_FAILED","error":"subscribe failed. Error: subscribe failed in create callback. Parameters: rootSubscription: RootSubscription : { xsuaaAppId: bookshop-java-public-e4e45564trial-dev!b64266, consumerTenant: 881d838a-f28e-474f-90c2-c8348f963e98, subdomain: e4e45564portal }. Error description: Timestamp: Mon Mar 01 10:15:11 UTC 2021, correlationId: ee8a5aad-12dc-488d-45c3-9380ea356088, Details: Error manage callbacks: Failed to call callback url PUT: https://e4e45564trial-dev-bookshop-java-public-srv.cfapps.eu10.hana.ondemand.com/mt/v1.0/subscriptio..., correlationId: ee8a5aad-12dc-488d-45c3-9380ea356088, appName: bookshop-java-public-e4e45564trial-dev and consumer tenant: 881d838a-f28e-474f-90c2-c8348f963e98. Body: SubscriptionCallbackPayloadDto(subscriptionAppName=bookshop-java-public-e4e45564trial-dev, subscriptionAppId=bookshop-java-public-e4e45564trial-dev!b64266, subscribedTenantId=881d838a-f28e-474f-90c2-c8348f963e98, subscribedSubaccountId=881d838a-f28e-474f-90c2-c8348f963e98, subscribedZoneId=null, subscribedSubdomain=e4e45564portal, subscribedLicenseType=TRIAL, subscribedCrmId=null, subscriptionAppPlan=null, subscriptionAppAmount=null, dependantServiceInstanceAppIds=null, userId=simmaco.ferriero@sap.com, userInfo=UserInfoPojo(userId=simmaco.ferriero@sap.com, userGuid=00f2c5d1-d979-410d-aeed-dcc9662a4110, userName=simmaco.ferriero@sap.com, email=simmaco.ferriero@sap.com, subIdp=I045523, sub=00f2c5d1-d979-410d-aeed-dcc9662a4110), appProviderCustomProperties=null, dependentServiceInstanceAppIds=null, additionalInformation={tenantMetadataUrl=https://e4e45564portal.authentication.eu10.hana.ondemand.com/saml/metadata}, globalAccountGUID=bf4cb67e-7ed3-4154-b699-088e74780602, eventType=CREATE) Reason: returned value from application: 500 INTERNAL_SERVER_ERROR, with body: Failed to process subscription of tenant '881d838a-f28e-474f-90c2-c8348f963e98'","dependencies":[],"createdOn":"Mon Mar 01 10:14:59 UTC 2021","changedOn":"Mon Mar 01 10:15:12 UTC 2021"}]}
What could be the problem?
Simmaco
Request clarification before answering.
Hi, just for information. I managed to make it working by changing the package.json file inside the sidecar to this:
{
"name": "deploy",
"dependencies": {
"@sap/cds": "^4.5.3",
"@sap/cds-mtx": "^1.1.2",
"@sap/hdi-deploy": "^4.0.3",
"@sap/instance-manager": "^2.2.0",
"@sap/xssec": "^3.0.9",
"@sap/hana-client": "^2.7.23",
"express": "^4.17.1",
"passport": "^0.4.1"
},
"scripts": {
"start": "node server.js"
}
}
and then removing and recreating the subscription.
Not sure if this is the right solution, but worked for me.
Simmaco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
55 | |
10 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.