Skip to main content

I am going through the trailhead for creating an LWC.  I installed cli and visual studio code and created a project.  I am at authorize my org and using my provided uname and new/reset pwd but getting this upon login (see image below).

 

Also, I am seeing an error modal in the bottom right of my vs code - "ERROR: We can’t query your org. Make sure that you’re connected to this org and have permissions to view the object and fields. Source: SOQL (Extension)". Maybe I need to fix that but I can't find any question/answers about that.

 

trailhead url: https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/create-a-hello-world-lightning-web-component

 

LWC Quick Start - Authorize Org Fails with 'This site can’t provide a secure connection'

1 risposta
  1. 12 gen 2022, 21:34

    I found my answer.  fyi if anyone sees this in the future ...

     

    https://salesforce.stackexchange.com/questions/249857/cannot-connect-a-salesforce-org-using-authorize-an-org-in-vs-code

     

    Essentially, if this happens to you go to vs code's terminal and issue cmd 'sfdx force:auth:device:login' and then copy paste the login url to a new browser window/tab and follow the prompts.

     

    And that will likely solve your problem with your 'authorize org'.  It did for me :)

0/9000