-
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
Failed to login to instance with "lightning" word in instance name #2241
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. |
This issue has been linked to a new work item: W-13639832 |
Hi @Jojolam44 - I just confirmed the fixed, this will be availble in the |
Closing this as it's fixed in latest releases |
@shetzel Can you please state which version has been tested for a fix?
I am seeing this issue in the following env:
Given:
|
@tecfu - you're using a lightning domain, which is different from the OP in this issue, and should not be used as the instance-url. As part of the error message (in your case in the JSON) it should state:
|
Summary
When our company migrated from classic to lightning, we created a new instance with the "-lightning" keyword in it.
We can't login with sfdx-cli because it trigger the "lightning domain" URL check error.
Steps To Reproduce
sfdx org:login:web --instance-url="https://mycompanyname-lightning.my.salesforce.com"
Expected result
Allow to login sfdx-cli to our instance
Actual result
$ sfdx org:login:web --instance-url="https://mycompany-lightning.my.salesforce.com"
Error (1): Invalid instance URL. It should NOT be a lightning domain.
Try this:
If you specify an --instance-url value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file.
To specify a My Domain URL, use the format https://yourcompanyname.my.salesforce.com.
To specify a sandbox, set --instance-url to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
System Information
Shell used : bash for windows
Additional information
The text was updated successfully, but these errors were encountered: