Skip to content

he instance URL is not set, or is incorrect for the given access token. API Error: Destination URL not reset. The URL returned from login must be set. #44

@b-wilder

Description

@b-wilder

When I try to use the Deploy to SalesforceDX button on a repo I forked, I get this error message:

"GUID: d55b3dbb-c553-ba46-f75c-a9c79d3655f6 ERROR: The instance URL is not set, or is incorrect for the given access token. API Error: Destination URL not reset. The URL returned from login must be set. Try this: Verify that the instanceUrl config setting is set to the instance that the access token belongs to. Use "sfdx force:config:list" to view your current setting. Use "sfdx force:config:set instanceUrl= --global" to set your instanceUrl to the correct instance.

  1. GUID: d55b3dbb-c553-ba46-f75c-a9c79d3655f6 ERROR: The instance URL is not set, or is incorrect for the given access token. API Error: Destination URL not reset. The URL returned from login must be set. Try this: Verify that the instanceUrl config setting is set to the instance that the access token belongs to. Use "sfdx force:config:list" to view your current setting. Use "sfdx force:config:set instanceUrl= --global" to set your instanceUrl to the correct instance.
  2. Set instance url to https://firefly-x-wing-447882.my.salesforce.com.
  3. Successfully cloned https://github.com/b-wilder/sfdc-trigger-framework.
  4. Using .salesforcedx.yaml found in repository."

The result of sfdx force:config:list is:
"sfdx force:config:list
=== Config
NAME VALUE LOCATION
───────────────────── ─────────────────────────────────────────────── ────────
defaultdevhubusername DevHub Global
instanceUrl https://firefly-x-wing-447882.my.salesforce.com Global"

https://firefly-x-wing-447882.my.salesforce.com is the url for my DevHub

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions