cancel
Showing results for 
Search instead for 
Did you mean: 

Command deploy failed Cannot read property of null (reading 'credentials') in Visual studio code

himanshukawatra
Explorer

I am trying to deploy Fiori element app using Visual studio code.

I am able to preview this application by Visual studio code. But while deploying using "npm run deploy" command i am getting the error(Command deploy failed with error Cannot read property of null (reading 'credentials')).
Can anyone help me out.

Deploy file.


Connection tested in the VS Code Fiori tool.

Thanks!

gregorw
Active Contributor
0 Kudos

You need to provide more context if you expect an answer.

himanshukawatra
Explorer
0 Kudos

Hi gregorw ,

Could you please let me know what type of more info you are looking ?

Thanks!

TobiasQueck
Advisor
Advisor
0 Kudos

Hi,

We need more information about the operating system you are on, the version of VSCode as well as of the installed SAP Fiori tools extensions. Please also share the ui5-deploy.yaml you are using.

There was recently an issue with the storage of credentials that was fix, therefore, please ensure you have the latest version of both VSCode and the SAP Fiori tools extensions.

My guess is that somehow your stored credentials are broken.

Cheers,

Tobias.

himanshukawatra
Explorer
0 Kudos

Hi,

here is my deploy file.

himanshukawatra
Explorer
0 Kudos

I am using Windows operation system

TobiasQueck
Advisor
Advisor
0 Kudos

Did you configure your credentials in the SAP Systems panel? If yes, please check them and execute "Test Connection". If not, add your system. The credentials will be stored in your Windows secure storage.

himanshukawatra
Explorer
0 Kudos

Hi tobias.queck ,

I checked the credential in the system.

it is maintained and tested successfully.

Thanks!

TobiasQueck
Advisor
Advisor

I see it now - sorry for not seeing it earlier. You need to move ignoreCertErrors two spaces to the right and it should be working.

PS: I strongly dislike yaml syntax.

jlongie
Advisor
Advisor

Would also recommend installing a YAML language extension that will catch synatax errors like this;

https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml

John

himanshukawatra
Explorer

Hi tobias.queck ,

After moving the 2 space it is working fine now.

Thank you so much it really a big help.

jlongie : Thanks for this suggestion, i will install YAML language extension.

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Ledjo
Participant
0 Kudos

Check the deploy.yaml file.

Check the user and password there.

TobiasQueck
Advisor
Advisor

Please don't put a user/password directly into the yaml. That's a bad practice.