+ Start a Discussion
Prasanth RPrasanth R 

visualstudiocode

hi folks,
     In visualstuidocode.I created the project and i tried to authorize with org..the new tab opened and i entered the playground credentials it didn't open.it's loading longtime.how to fix this?kindly assit me
Best Answer chosen by Prasanth R
SwethaSwetha (Salesforce Developers) 
HI Prasanth,
Can you try  sfdx force:auth:device:login command and login with the verification URL and code and confirm if that fixes the issue
 

All Answers

SwethaSwetha (Salesforce Developers) 
HI Prashant,
Can you share the details of trailhead that I can use to reproduce this behavior? Thanks

Related:https://salesforce.stackexchange.com/questions/256860/authorize-org-failed-in-vs-code
Prasanth RPrasanth R
https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/create-a-hello-world-lightning-web-component?trail_id=force_com_dev_intermediate

above is the link...already i done this trail.now i'm trying to practice with other codes .there is no error in programs.when i try to authorize with org..the new tab opened and i entered the playground credentials it didn't open.it's loading longtime
SwethaSwetha (Salesforce Developers) 
HI Prasanth,
Can you try  sfdx force:auth:device:login command and login with the verification URL and code and confirm if that fixes the issue
 
This was selected as the best answer
Prasanth RPrasanth R
the page opened but not able to do further steps.i update the codes in html,js and xml.then i give force/app/default(right click) not able to see option of delpoy.how to deploy that
Malika Pathak 9Malika Pathak 9
Hi Prashanth,

This issue is related to CLI version.
Try reinstalling Salesforce CLI you can try sfdx-cli/7.81.0-7b953c80d1 because new CLI version contains some bugs, . you can refer to https://github.com/forcedotcom/cli/issues

Install CLI as admin
and after that reinstall VSCode Salesforce extensions.
Then Run VsCode as Run As Admin.
and then try auth an org.

If this answer helps you, mark this as best answer to help others.
Prasanth RPrasanth R
@swetha..Thanks for your help.It worked