Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sf login issue #2992

Closed
GlowikM opened this issue Aug 23, 2024 · 5 comments
Closed

sf login issue #2992

GlowikM opened this issue Aug 23, 2024 · 5 comments
Labels
investigating We're actively investigating this issue stale validated Version information for this issue has been validated

Comments

@GlowikM
Copy link

GlowikM commented Aug 23, 2024

I tried connect to sandbox environment using cli

I'm up to date:
@salesforce/cli/2.55.6 win32-x64 node-v20.16.0

Using below command
sf org login web --instanceurl https://test.salesforce.com

2024-08-22_10-33-39

Error from sf log:
{"level":50,"time":1724397948280,"name":"sf:oclif","msg":"AuthCodeUsernameRetrievalError: Could not retrieve the username after successful auth code exchange.\nDue to: request to https://abb-ability--dev.sandbox.my.salesforce.com/services/oauth2/userinfo failed, reason: unable to get local issuer certificate\n at SfCommandError.from (file:///C:/Users/PLMIGLO1/AppData/Local/sf/client/2.55.6-648ad30/node_modules/@salesforce/sf-plugins-core/lib/SfCommandError.js:39:16)\n at LoginWeb.catch (file:///C:/Users/PLMIGLO1/AppData/Local/sf/client/2.55.6-648ad30/node_modules/@salesforce/sf-plugins-core/lib/sfCommand.js:316:47)\n at LoginWeb._run (C:/Users/PLMIGLO1/AppData/Local/sf/client/2.55.6-648ad30/node_modules/@oclif/core/lib/command.js:305:29)\n at async Config.runCommand (C:/Users/PLMIGLO1/AppData/Local/sf/client/2.55.6-648ad30/node_modules/@oclif/core/lib/config/config.js:424:25)\n at async run (C:/Users/PLMIGLO1/AppData/Local/sf/client/2.55.6-648ad30/node_modules/@oclif/core/lib/main.js:95:16)\n at async file:///C:/Users/PLMIGLO1/AppData/Local/sf/client/2.55.6-648ad30/bin/run.js:15:1"}

@GlowikM GlowikM added the investigating We're actively investigating this issue label Aug 23, 2024
Copy link

Hello @GlowikM 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Aug 23, 2024
Copy link

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.

@GlowikM
Copy link
Author

GlowikM commented Aug 23, 2024

Hi bellow all information after using command version --verbose --json after using update nightly and problem still occurring

{
"architecture": "win32-x64",
"cliVersion": "@salesforce/cli/2.57.1",
"nodeVersion": "node-v20.16.0",
"osVersion": "Windows_NT 10.0.22631",
"rootPath": "C:\Users\PLMIGLO1\AppData\Local\sf\client\2.57.1-8af5fb6",
"shell": "powershell",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.0 (core)",
"@oclif/plugin-commands 4.0.11 (core)",
"@oclif/plugin-help 6.2.8 (core)",
"@oclif/plugin-not-found 3.2.16 (core)",
"@oclif/plugin-plugins 5.4.4 (core)",
"@oclif/plugin-search 1.2.5 (core)",
"@oclif/plugin-update 4.5.3 (core)",
"@oclif/plugin-version 2.2.10 (core)",
"@oclif/plugin-warn-if-update-available 3.1.11 (core)",
"@oclif/plugin-which 3.2.10 (core)",
"@salesforce/cli 2.57.1 (core)",
"apex 3.4.2 (core)",
"api 1.2.0 (core)",
"auth 3.6.48 (core)",
"data 3.6.1 (core)",
"deploy-retrieve 3.11.1 (core)",
"info 3.3.29 (core)",
"limits 3.3.25 (core)",
"marketplace 1.2.22 (core)",
"org 4.5.1 (core)",
"packaging 2.8.0 (core)",
"schema 3.3.24 (core)",
"settings 2.3.13 (core)",
"sobject 1.4.29 (core)",
"source 3.5.14 (core)",
"telemetry 3.6.7 (core)",
"templates 56.3.12 (core)",
"trust 3.7.23 (core)",
"user 3.5.25 (core)"
]
}

@github-actions github-actions bot added validated Version information for this issue has been validated investigating We're actively investigating this issue and removed more information required Issue requires more information or a response from the customer labels Aug 23, 2024
@cristiand391
Copy link
Member

that's a network error (CLI is failing after trying to do request.

Are you behind a proxy/firewall? See:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli_firewall.htm?q=network

@WillieRuemmele WillieRuemmele closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating We're actively investigating this issue stale validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

5 participants
@iowillhoit @cristiand391 @WillieRuemmele @GlowikM and others