Skip to content

sfdx force:auth:web:login -r https://login.salesforce.com ==> Browser just loads forever. #881

Closed

Description

@shashikantMkumar

Summary

Short summary of what is going on or to provide context.

Steps To Reproduce:

  1. Either run the command "sfdx force:auth:web:login -r https://login.salesforce.com" from command line or command pallet is visual studio code.
  2. The browser opens the salesforce authentication page.
  3. After entering the credentials & authorizing CLI for access, browser just loads forever.
  4. I even tried by changing default browser to 'Edge', 'FireFox', 'Chrome' one by one, none worked.

Expected result

The org should be successfully authorized.

Actual result

Browser loads for ever..

Additional information

Activity

  1. added
    investigating
    on Feb 25, 2021
  2. github-actions commented on Feb 25, 2021

    @github-actions

    Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

  3. grieve54706 commented on Feb 25, 2021

    @grieve54706

    Try

     sfdx plugins:uninstall auth
    
  4. jsmithdev commented on Feb 25, 2021

    @jsmithdev

    Try

     sfdx plugins:uninstall auth
    

    tried but no luck.

    i also tried npm i [email protected] -g to install older version with no luck

    going to try installing other versions...

    we can not make and edit lwc without sfdx so this is very bad. if anyone finds a work around so we can do our jobs, please share

  5. AnsCodeLab commented on Feb 26, 2021

    @AnsCodeLab

    Got the same problem today. Here are the last lines when using flag --dev-debug
    ` sfdx:WebServer DEBUG Starting web server +0ms

    sfdx:WebServer DEBUG Nothing listening on host: localhost port: 1717 - good! +20ms

    sfdx:WebServer DEBUG socket connection initialized from 127.0.0.1 +5s

    sfdx:WebServer DEBUG socket connection initialized from 127.0.0.1 +249ms`

  6. grieve54706 commented on Feb 26, 2021

    @grieve54706

    Now, My condition is

    ❯ sfdx version
    sfdx-cli/7.88.4-3b2e55c3f1 linux-x64 node-v14.15.4
    
    ❯ sfdx plugins --core
    @oclif/plugin-autocomplete 0.3.0 (core)
    @oclif/plugin-commands 1.3.0 (core)
    @oclif/plugin-help 3.2.2 (core)
    @oclif/plugin-not-found 1.2.4 (core)
    @oclif/plugin-plugins 1.9.5 (core)
    @oclif/plugin-update 1.4.0-2 (core)
    @oclif/plugin-warn-if-update-available 1.7.0 (core)
    @oclif/plugin-which 1.0.3 (core)
    @salesforce/sfdx-trust 3.6.0 (core)
    alias 1.1.5 (core)
    auth 1.4.8 (core)
    config 1.2.4 (core)
    generator 1.1.5 (core)
    salesforcedx 48.22.11 (48.22.11)
    ├─ salesforce-alm 48.24.3
    ├─ salesforcedx-templates 48.18.0
    ├─ @salesforce/sfdx-plugin-lwc-test 0.1.7
    └─ custom-metadata 1.0.4
    sfdx-cli 7.88.4 (core)
    sfpowerkit 2.6.5
    telemetry 1.1.1 (core)
    
    ❯ sfdx plugins
    salesforcedx 48.22.11 (48.22.11)
    ├─ salesforce-alm 48.24.3
    ├─ salesforcedx-templates 48.18.0
    ├─ custom-metadata 1.0.4
    └─ @salesforce/sfdx-plugin-lwc-test 0.1.7
    sfpowerkit 2.6.5
    

    I tried to upgrade and downgrade salesforcedx and sfdx-cli

    Finally, I find my sfdx plugin has auth

    I uninstall it, then it works

    Maybe you can try to downgrade salesforcedx to my version

  7. AnsCodeLab commented on Feb 26, 2021

    @AnsCodeLab

    @grieve54706 Nice, it works for me. Thanks.

  8. jsmithdev commented on Mar 1, 2021

    @jsmithdev

    @grieve54706 thanks for the listing 👍

    #864 seems same issue.

    steps

    npm i [email protected] -g

    sfdx plugins:install [email protected]

    ...and used nvm for node version switching

    nvm install 14.15.4

    nvm use 14.15.4

    results

    once sfdx force:auth:web:login worked, i ran and got below:

    sfdx -v
    sfdx-cli/7.88.4 linux-x64 node-v14.15.4

    sfdx plugins --core
    @oclif/plugin-autocomplete 0.3.0 (core)
    @oclif/plugin-commands 1.3.0 (core)
    @oclif/plugin-not-found 1.2.4 (core)
    @oclif/plugin-plugins 1.10.0 (core)
    @oclif/plugin-warn-if-update-available 1.7.0 (core)
    @oclif/plugin-which 1.0.3 (core)
    @salesforce/lwc-dev-server 2.10.0
    ├─ @oclif/plugin-update 1.3.10
    └─ @oclif/plugin-help 2.2.3
    @salesforce/sfdx-diff 0.0.6
    @salesforce/sfdx-trust 3.6.0 (core)
    alias 1.1.7 (core)
    auth 1.4.8 (core)
    config 1.2.5 (core)
    generator 1.1.5 (core)
    salesforcedx 48.22.11 (48.22.11)
    ├─ salesforcedx-templates 48.18.0
    ├─ salesforce-alm 48.24.3
    ├─ @salesforce/sfdx-plugin-lwc-test 0.1.7
    └─ custom-metadata 1.0.4
    sfdx-cli 7.88.4 (core)
    sfdx-ext 0.0.49
    telemetry 1.1.1 (core)

  9. randal923 commented on Mar 1, 2021

    @randal923

    Having the same issue. Auth does show in my plugins but I can't uninstall it.

    sfdx-cli/7.88.4 wsl-x64 node-v14.15.4

    @oclif/plugin-autocomplete 0.3.0 (core)
    @oclif/plugin-commands 1.3.0 (core)
    @oclif/plugin-help 3.2.2 (core)
    @oclif/plugin-not-found 1.2.4 (core)
    @oclif/plugin-plugins 1.9.5 (core)
    @oclif/plugin-update 1.4.0-2 (core)
    @oclif/plugin-warn-if-update-available 1.7.0 (core)
    @oclif/plugin-which 1.0.3 (core)
    @salesforce/sfdx-trust 3.6.0 (core)
    alias 1.1.7 (core)
    auth 1.4.8 (core)
    config 1.2.5 (core)
    generator 1.1.5 (core)
    salesforcedx 51.0.4 (core)
    ├─ limits 1.0.4 (core)
    ├─ user 1.1.2 (core)
    ├─ schema 1.0.4 (core)
    ├─ apex 0.1.4 (core)
    ├─ templates 51.2.0 (core)
    ├─ custom-metadata 1.0.11 (core)
    ├─ salesforce-alm 51.0.2 (core)
    └─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
    sfdx-cli 7.88.4 (core)
    telemetry 1.1.1 (core)
    
    Uninstalling auth... !
     ›   Error: auth is not installed
    
  10. grieve54706 commented on Mar 1, 2021

    @grieve54706

    Having the same issue. Auth does show in my plugins but I can't uninstall it.

    sfdx-cli/7.88.4 wsl-x64 node-v14.15.4
    ...

    My case is I install another auth plugin
    You can just try to do this

    sfdx plugins:install [email protected]
    
  11. randal923 commented on Mar 1, 2021

    @randal923

    Having the same issue. Auth does show in my plugins but I can't uninstall it.
    sfdx-cli/7.88.4 wsl-x64 node-v14.15.4

    @oclif/plugin-autocomplete 0.3.0 (core)
    @oclif/plugin-commands 1.3.0 (core)
    @oclif/plugin-help 3.2.2 (core)
    @oclif/plugin-not-found 1.2.4 (core)
    @oclif/plugin-plugins 1.9.5 (core)
    @oclif/plugin-update 1.4.0-2 (core)
    @oclif/plugin-warn-if-update-available 1.7.0 (core)
    @oclif/plugin-which 1.0.3 (core)
    @salesforce/sfdx-trust 3.6.0 (core)
    alias 1.1.7 (core)
    auth 1.4.8 (core)
    config 1.2.5 (core)
    generator 1.1.5 (core)
    salesforcedx 51.0.4 (core)
    ├─ limits 1.0.4 (core)
    ├─ user 1.1.2 (core)
    ├─ schema 1.0.4 (core)
    ├─ apex 0.1.4 (core)
    ├─ templates 51.2.0 (core)
    ├─ custom-metadata 1.0.11 (core)
    ├─ salesforce-alm 51.0.2 (core)
    └─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
    sfdx-cli 7.88.4 (core)
    telemetry 1.1.1 (core)
    
    Uninstalling auth... !
     ›   Error: auth is not installed
    

    My case is I install another auth plugin
    You can just try to do this

    sfdx plugins:install [email protected]
    

    That worked for me. Thanks!!

  12. rtoepfer commented on Mar 1, 2021

    @rtoepfer

    I've been running sfdx force:auth:device:login as a workaround while this issue is open.

  13. ilo4 commented on Mar 2, 2021

    @ilo4

    I had the same issue.
    Downgrading with " sfdx plugins:install [email protected] " did not work for me.

    I effectively had to uninstall salesforce cli; reinstall latest version and then run :
    sfdx plugins:uninstall auth

    With that it's working again for now ...

  14. amanrawat1993 commented on Mar 9, 2021

    @amanrawat1993

    @grieve54706 thanks for the listing 👍

    #864 seems same issue.

    steps

    npm i [email protected] -g

    sfdx plugins:install [email protected]

    ...and used nvm for node version switching

    nvm install 14.15.4

    nvm use 14.15.4

    results

    once sfdx force:auth:web:login worked, i ran and got below:

    sfdx -v
    sfdx-cli/7.88.4 linux-x64 node-v14.15.4

    sfdx plugins --core
    @oclif/plugin-autocomplete 0.3.0 (core)
    @oclif/plugin-commands 1.3.0 (core)
    @oclif/plugin-not-found 1.2.4 (core)
    @oclif/plugin-plugins 1.10.0 (core)
    @oclif/plugin-warn-if-update-available 1.7.0 (core)
    @oclif/plugin-which 1.0.3 (core)
    @salesforce/lwc-dev-server 2.10.0
    ├─ @oclif/plugin-update 1.3.10
    └─ @oclif/plugin-help 2.2.3
    @salesforce/sfdx-diff 0.0.6
    @salesforce/sfdx-trust 3.6.0 (core)
    alias 1.1.7 (core)
    auth 1.4.8 (core)
    config 1.2.5 (core)
    generator 1.1.5 (core)
    salesforcedx 48.22.11 (48.22.11)
    ├─ salesforcedx-templates 48.18.0
    ├─ salesforce-alm 48.24.3
    ├─ @salesforce/sfdx-plugin-lwc-test 0.1.7
    └─ custom-metadata 1.0.4
    sfdx-cli 7.88.4 (core)
    sfdx-ext 0.0.49
    telemetry 1.1.1 (core)

    This one worked for me,

    sfdx plugins:install [email protected]
    sfdx plugins:install [email protected]

  15. Rohit496 commented on Mar 9, 2021

    @Rohit496

    Hello All,
    I got some error in jenkins below you can see

    C:\Windows\system32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\SCSDevOps_>C:"Program Files""Salesforce CLI"\bin\sfdx auth:jwt:grant --clientid 3MVG9fe4g9fhX0E43UVmaCSnNuTBm276ttpeJuWSKS0l5TmJXMSGSNJxOgtCwV6kIv8ySP_liAUHKh6p_yRD6 --username [email protected] --jwtkeyfile **** --loglevel DEBUG --setdefaultdevhubusername --instanceurl https://login.salesforce.com/
    ERROR running auth:jwt:grant: We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: error:02001005:system library:fopen:Input/output error
    [Pipeline] echo
    inside rc 0
    [Pipeline] error
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] }
    [Pipeline] // withCredentials
    [Pipeline] }
    [Pipeline] // node
    [Pipeline] End of Pipeline
    ERROR: hub org authorization failed
    Finished: FAILURE

  16. RodEsp commented on Mar 10, 2021

    @RodEsp
    Contributor

    Yep, this is a duplicate of #890 which was fixed by forcedotcom/sfdx-core#384.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigating

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions