"sf api request rest" does not refresh session token when required #3176
Labels
bug
Issue or pull request that identifies or fixes a bug
investigating
We're actively investigating this issue
validated
Version information for this issue has been validated
Summary
When I run
sf api request rest '/services/data/v60.0/' --method GET
, it works great most of the time.But if the CLI's access token has expired and need to be refreshed, this command just fails instead of refreshing the token.
Obviously, I know that this is a beta command, but it'll be good to know it's on the issue list for when this command becomes fully released.
Steps To Reproduce
In a project where the access token has expired, run
sf api request rest '/services/data/v60.0/' --method GET
before running any other CLI command.This will fail, if you run another CLI command against your org, then retry the api request, it will succeed.
Expected result
CLI returns the API description
Actual result
Session error returned:
Additional information
System Information
The text was updated successfully, but these errors were encountered: