I do have an application hosted on a BTP subaccount hosted on Microsoft Azure. I have added the attachments plugin, and when I start my application locally using the profile hybrid, I got the following error:
ERROR on server start: ❗️
Error: Missing Object Store credentials: bucket, access_key_id, secret_access_key
at AWSAttachmentsService.init (/Users/I586495/SAPDevelop/dexco/ai-product-suggestion/node_modules/@cap-js/attachments/lib/aws-s3.js:48:15)
at exports.init (/Users/I586495/SAPDevelop/dexco/ai-product-suggestion/node_modules/@sap/cds/lib/srv/factory.js:76:13)
at /Users/I586495/SAPDevelop/dexco/ai-product-suggestion/node_modules/@sap/cds/lib/srv/cds-connect.js:42:115
at async cds.registerPluginHandlers (/Users/I586495/SAPDevelop/dexco/ai-product-suggestion/node_modules/@cap-js/attachments/lib/plugin.js:32:26)
at async cds_server (/Users/I586495/SAPDevelop/dexco/ai-product-suggestion/node_modules/@sap/cds/server.js:61:3)
at async Object.serve (/Users/I586495/SAPDevelop/dexco/ai-product-suggestion/node_modules/@sap/cds/bin/serve.js:208:18)
at async Object.exec (/Users/I586495/.nvm/versions/node/v22.19.0/lib/node_modules/@sap/cds-dk/bin/cds.js:99:16)
at async /Users/I586495/.nvm/versions/node/v22.19.0/lib/node_modules/@sap/cds-dk/lib/watch/watched.js:18:5
I imagine the error is caused because it is trying to conect on the AWS format.
I have tried to set the kind on my package.json, but I got another error:
❗️ ERROR on server start: ❗️
Error: No configuration found for 'cds.requires.azure'
at _kind (/Users/I586495/SAPDevelop/dexco/ai-product-suggestion/node_modules/@sap/cds/lib/srv/factory.js:40:80)
at new ServiceFactory (/Users/I586495/SAPDevelop/dexco/ai-product-suggestion/node_modules/@sap/cds/lib/srv/factory.js:17:87)
at /Users/I586495/SAPDevelop/dexco/ai-product-suggestion/node_modules/@sap/cds/lib/srv/cds-connect.js:42:21
at async cds.registerPluginHandlers (/Users/I586495/SAPDevelop/dexco/ai-product-suggestion/node_modules/@cap-js/attachments/lib/plugin.js:32:26)
I do have an application hosted on a BTP subaccount hosted on Microsoft Azure. I have added the attachments plugin, and when I start my application locally using the profile hybrid, I got the following error:
I imagine the error is caused because it is trying to conect on the AWS format.
I have tried to set the
kindon my package.json, but I got another error: