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

Incomplete error message when using sfdx auth:sfdxurl:store #1298

Closed
AllanOricil opened this issue Nov 27, 2021 · 5 comments
Closed

Incomplete error message when using sfdx auth:sfdxurl:store #1298

AllanOricil opened this issue Nov 27, 2021 · 5 comments
Labels
bug Issue or pull request that identifies or fixes a bug documentation Issue or pull request to update or fix documentation investigating We're actively investigating this issue

Comments

@AllanOricil
Copy link

Summary

When running sfdx auth:sfdxurl:store with wrong url format, the error message displays an incomplete message. It says
force://<clientId>:<clientSecret>:<refreshToken>@<loginUrl>

Screenshot 2021-11-26 at 22 43 08

But according to the docs it should also say force://<refreshToken>@<instanceUrl>, as it is another option.

Steps To Reproduce:

1 - create a auth file with this force://5Aep861nW.ObxIYDklsebQKIpbMOb7FhQu5@syn--vlocdevbas.my.salesforce.com (don't worry this is invalid)
2 - verify it is missing one of the possible sfdxAuthUrl

Expected result

When the given sfdxAuthUrl is wrong, it should display an error message showing both possible sfdxAuthUrl formats:

force://@
force://::@

Actual result

When the given sfdxAuthUrl is wrong, the error message displays force://::@ only

System Information

sfdx-cli/7.127.0 darwin-arm64 node-v12.22.1
 allanoricil    sf-metadata   main ≡  +1   12.22.1  羽316ms⠀   sfdx plugins --core                                                                                               zsh  0  22:48:56 
@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.5 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.10.2 (core)
@oclif/plugin-update 1.5.0 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
alias 1.1.22 (core)
apex 0.3.0 (core)
auth 1.7.5 (core)
config 1.2.47 (core)
custom-metadata 1.0.12 (core)
data 0.6.4 (core)
generator 1.2.1 (core)
limits 1.2.3 (core)
org 1.9.0 (core)
salesforce-alm 53.4.2 (core)
schema 1.0.10 (core)
sfdx-cli 7.127.0 (core)
sfdx-git-delta 4.10.0
source 1.4.0 (core)
telemetry 1.2.8 (core)
templates 52.6.0 (core)
trust 1.0.11 (core)
user 1.5.2 (core)

Additional information

N/A

@AllanOricil AllanOricil added the investigating We're actively investigating this issue label Nov 27, 2021
@AllanOricil AllanOricil changed the title Wrong error message when using sfdx auth:sfdxurl:store Incomplete error message when using sfdx auth:sfdxurl:store Nov 27, 2021
@github-actions
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.

@AllanOricil
Copy link
Author

The docs are also not mentioning if the INSTANCE_URL should or not be with https. It seems it is not necessary because the sfdxAuthUrl that we get when we run sfdx force:org:display --verbose --json does not have https.

@jshackell-sfdc
Copy link
Collaborator

jshackell-sfdc commented Nov 29, 2021

Hi @AllanOricil . I played around with this a bit, and I believe the docs are wrong: force://<refreshToken>@<instanceUrl> is NOT a valid option. Which means the first part of the error message is correct. I'll update the docs accordingly. I also agree that the latter part of the error could be more clear about when to use a protocol or not, so we'll be updating both the error and docs soon. Thx for the input!

@jshackell-sfdc jshackell-sfdc added bug Issue or pull request that identifies or fixes a bug documentation Issue or pull request to update or fix documentation labels Nov 29, 2021
@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-10238649

@cristiand391
Copy link
Member

cristiand391 commented Dec 9, 2021

This should be fixed in latest sfdx v7.130.1 🎉
Release notes: https://github.com/forcedotcom/cli/tree/main/releasenotes/sfdx#71301-dec-9-2021-stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug documentation Issue or pull request to update or fix documentation investigating We're actively investigating this issue
Projects
None yet
Development

No branches or pull requests

4 participants