You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the OAuth token of my session expire, it seems that sfdx doesn't refresh it automatically anymore.
Steps To Reproduce:
Authorize an org (sandbox) on your VS Code sfdx project
Wait or make your OAuth token to expire
Try to use "force:source:deploy" on any file, you should get the error
Expected result
Refresh the token and deploy the source
Actual result
Receiving: INVALID_SESSION_ID: Session expired or invalid
Additional information
SFDX version : 7.90.2
Using the "open org" command seems to refresh the token. We have to do it every time that token expire, annoying.
This is probably related to issue #899
The text was updated successfully, but these errors were encountered:
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 seems to be caused by the recent changes in which the CLI started using Salesforce's REST API to deploy by default (since v7.90.2). If you force it to deploy using SOAP API, it will refresh your expired access token:
After refreshing your access token that way, or by sfdx force:org:open as you said, you can then go back to deploying with REST until the token expires again...
It seems that sfdx force:org:list still displays the orgs as Connected because it conveniently refreshes the access tokens for non-scratch orgs ref
Summary
After the OAuth token of my session expire, it seems that sfdx doesn't refresh it automatically anymore.
Steps To Reproduce:
Expected result
Refresh the token and deploy the source
Actual result
Receiving: INVALID_SESSION_ID: Session expired or invalid
Additional information
SFDX version : 7.90.2
Using the "open org" command seems to refresh the token. We have to do it every time that token expire, annoying.
This is probably related to issue #899
The text was updated successfully, but these errors were encountered: