question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refresh SObject definitions not working in 46.17.0 (also 47.1.0)

See original GitHub issue

Summary

When i run SFDX Refersh SObject definitions against a developer edition org (not scratch, not sandbox), it fails

Steps To Reproduce:

  1. Connect SFDX cli and Salesforce Extension pack to a developer edition org
  2. 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:closed
  • Created 4 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
RandyTriggcommented, Nov 6, 2019

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.

0reactions
brpowellcommented, Nov 6, 2019

Glad you were unblocked @RandyTrigg. Let us know if you keep encountering the error and we can keep looking at it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors in standard object definitions - Salesforce Developers
Select your project, go to the command palette (View > Command Palette), and type in "sobject". You should see an option called "SFDX:...
Read more >
sfdx sobject refresh - Salesforce Stack Exchange
I'm getting the below error. I have my dev hub set as default and authorized. How to fix? Starting SFDX: Refresh SObject Definitions....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found