Refresh SObject definitions not working in 46.17.0 (also 47.1.0)
See original GitHub issueSummary
When i run SFDX Refersh SObject definitions against a developer edition org (not scratch, not sandbox), it fails
Steps To Reproduce:
- Connect SFDX cli and Salesforce Extension pack to a developer edition org
- Run SFDX Refresh SObject definitions (there is now a new menu for all objects, custom or standard - for me all fail)
Expected result
The SObject definitions are refreshed
Actual result
The command fails
Additional information
Error log:
Starting SFDX: Refresh SObject Definitions
14:34:48.623 sfdx sobject definitions refresh
Failure performing sObject describe Must pass a username and/or OAuth options when creating an AuthInfo instance.
14:34:53.478 sfdx sobject definitions refresh ended with error Failure performing sObject describe Must pass a username and/or OAuth options when creating an AuthInfo instance.
14:34:53.479 sfdx sobject definitions refresh ended with exit code 1
Starting SFDX: Refresh SObject Definitions
14:34:48.623 sfdx sobject definitions refresh Failure performing sObject describe Must pass a username and/or OAuth options when creating an AuthInfo instance. 14:34:53.478 sfdx sobject definitions refresh ended with error Failure performing sObject describe Must pass a username and/or OAuth options when creating an AuthInfo instance.
14:34:53.479 sfdx sobject definitions refresh ended with exit code 1
Starting SFDX: Refresh SObject Definitions
14:40:21.581 sfdx sobject definitions refresh
Failure performing sObject describe Must pass a username and/or OAuth options when creating an AuthInfo instance.
14:40:26.996 sfdx sobject definitions refresh ended with error Failure performing sObject describe Must pass a username and/or OAuth options when creating an AuthInfo instance.
14:40:26.997 sfdx sobject definitions refresh ended with exit code 1
VS Code Version: Version: 1.38.1 Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0 Date: 2019-09-11T13:31:32.854Z
SFDX CLI Version:
sfdx-cli/7.27.0-714f62f9c1 darwin-x64 node-v10.15.3
OS and version: macOS 10.15 (19A583)
All other commands work fine, i can retrieve source, deploy it, run tests. So the Auth token is definitely valid.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (4 by maintainers)
Top GitHub Comments
Okay, I finally figured out the re-authorize work-around for the error. I can successfully refresh my sobject definitions when I first re-authorize like so:
sfdx force:auth:web:login --setalias DevHub --instanceurl https://login.salesforce.com --setdefaultusername
Thanks again @brpowell for fixing the bug.
Glad you were unblocked @RandyTrigg. Let us know if you keep encountering the error and we can keep looking at it.