Hi, I am using cumulocity free trial version and I was following this documentation Getting started - Cumulocity IoT Guides. I am currently getting Error occurred while trying to proxy request /tenant/loginOptions from localhost:9000 to https://env320490.eu-latest.cumulocity.com/ (UNABLE_TO_GET_ISSUER_CERT_LOCALLY) (https://nodejs.org/api/errors.html#errors_common_system_errors) [HPM] Error occurred while trying to proxy request /tenant/currentTenant from localhost:9000 to https://env320490.eu-latest.cumulocity.com/ (UNABLE_TO_GET_ISSUER_CERT_LOCALLY) (https://nodejs.org/api/errors.html#errors_common_system_errors) [HPM] Error occurred while trying to proxy request /user/logout from localhost:9000 to https://env320490.eu-latest.cumulocity.com/ (UNABLE_TO_GET_ISSUER_CERT_LOCALLY) (https://nodejs.org/api/errors.html#errors_common_system_errors)
this error on my terminal of vs code when I am starting the application. I am running this app on my office laptop so I think this issue might be cause of some restrictions, but I am not able to resolve this issue. Please let me know if you know anything about the same.
Hi Tristan,
I was able to fix that error but currently i am getting issue when i am trying to deploy my application with c8y cli.
npx c8ycli deploy
prompt: Instance URL: (http://demos.cumulocity.com) https://env320490.eu-latest.cumulocity.com/
prompt: Username: (admin) NewUser2
prompt: Password:
Create application failed:
Error: Failed to connect to https://env320490.eu-latest.cumulocity.com/. Invalid credentials provided or tenant not reachable.
at DeployCommand.createClient (C:\Users\samanyu.mehra\my-c8y-application\node_modules\@c8y\cli\dist\cli\DeployCommand.js:253:27)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async DeployCommand.action (C:\Users\samanyu.mehra\my-c8y-application\node_modules\@c8y\cli\dist\cli\DeployCommand.js:72:31)
This is the error on my vscode terminal. I am providing the correct username and password but still getting invalid credentials error, can you tell me what the potential issue could be.
Hi Stefan,
Already tried that but same issue. My user has all the roles present in the cumulocity and I have tried changing password and using the same for deployment but no luck. Can you tell me what else I can do to make this work?
Hi Stefan,
I have already tried all the points you have mentioned except the 3rd one so I am currently following that. Let’s see if that’s the issue, I will update you guys here.
Hi,
Is it possible to deploy the application with cli on cumulocity trial version because everything is working with other mediums except c8y cli so could this be a potential issue?
You can build the app with c8ycli build.
Afterwards you should have a dist folder. Navigate to where the cumulocity.json file is, normally apps → {app-name} and zip everything to a zip with the app-name.
In cumulocity you can go to Administration → Ecosystem → Applications → Add Application (Top right) → Upload App. Select the zip and you application is deployed to your tenant.
Hi Stefan,
I know we can build from cumulocity on the browser but my issue was that I need to deploy through cumulocity cli. I tried deploying it from my personal laptop and I was able to deploy it so I think the office laptop has some restrictions regarding the credentials in cli. Anyway thanks for your help and your team.