-
Notifications
You must be signed in to change notification settings - Fork 78
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
SFDX commands failing with "Destination URL not reset. The URL returned from login must be set" #1564
Comments
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. |
Hi @leonicolas 👋 I was able to have it work on UPDATE: I found a workaround for now, if you use your sandbox name, instead of auth token, it'll work |
Thank you @WillieRuemmele Unfortunately, I can't use the sandbox user name because it is an entirely automated process. It is running inside a docker container and there are no authenticated ORGs. I'm using the 7.149.1 version while we don't have a solution for the issue. Maybe sfdx auth:jwt:grant can be used as a workaround. I will test this approach. I will also take a look at the source code and try to understand what was the regression and submit a PR. |
Thanks, sorry the workaround isn't applicable. I'm sure it's related to this PR, and I've confirmed it's broken for other commands, running on sfdx-core v3 I'm not sure if it's an issue with the v3 branch of sfdx-core, or if it's coming from jsforce v2 it's only reproducible in the shipped CLI, if I run the commands from the local version of each plugin it passes 😞 |
Hi all ... somehow in 7.152.0 works in my local machine. |
Are you currently authenticated to the org ( sfdx force:org:list )? By the way, it's working fine on the 7.154.0 version. Thank you @WillieRuemmele |
Fixed in 7.154.0 |
Is anyone else experiencing this exact issue with sf commands now? We are creating a CI/CD pipeline using access tokens we retrieve ourselves for security reasons, and we're experiencing this exact issue when trying to use it. |
@alecdorner is sfdx auth url not an option? https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_url.htm |
Summary
SFDX commands using the auth token as username are failing with the "Destination URL not reset. The URL returned from login must be set" error.
The error started to happen on the sfdx-cli version 7.150.0
The same issue happens on amd64 and arm64 architectures
Steps To Reproduce:
Expected result
sfdx-cli version 7.149.1
Actual result
sfdx-cli version 7.150.0 and newer versions
Using the SFDX_INSTANCE_URL environment variable:
System Information
{
"cliVersion": "sfdx-cli/7.153.1",
"architecture": "darwin-arm64",
"nodeVersion": "node-v16.15.1",
"pluginVersions": [
"@oclif/plugin-autocomplete 0.3.0 (core)",
"@oclif/plugin-commands 1.3.0 (core)",
"@oclif/plugin-help 3.3.1 (core)",
"@oclif/plugin-not-found 1.2.6 (core)",
"@oclif/plugin-plugins 1.10.11 (core)",
"@oclif/plugin-update 1.5.0 (core)",
"@oclif/plugin-warn-if-update-available 1.7.3 (core)",
"@oclif/plugin-which 1.0.4 (core)",
"@salesforce/lwc-dev-server 2.11.0",
"@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
"alias 2.0.1 (core)",
"apex 0.13.0 (core)",
"auth 2.0.3 (core)",
"community 1.1.5 (core)",
"config 1.4.7 (core)",
"custom-metadata 1.1.0 (core)",
"data 2.0.2 (core)",
"generator 2.0.1 (core)",
"info 2.0.1 (core)",
"limits 2.0.1 (core)",
"org 1.13.2 (core)",
"salesforce-alm 54.4.0 (core)",
"schema 2.1.1 (core)",
"sfdx-cli 7.153.1 (core)",
"sfdx-devops 0.4.6",
"sfdx-heber 0.0.2",
"sfdx-typegen 0.6.2",
"shane-sfdx-plugins 4.43.0",
"├─ @mshanemc/plugin-streaming 1.1.7",
"└─ @mshanemc/sfdx-sosl 1.1.0",
"signups 1.1.2 (core)",
"source 1.10.2 (core)",
"telemetry 2.0.0 (core)",
"templates 54.8.0 (core)",
"trust 1.1.0 (core)",
"user 2.0.2 (core)"
],
"osVersion": "Darwin 21.4.0"
}
The text was updated successfully, but these errors were encountered: