-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"INVALID_SESSION_ID: Session expired or invalid" during force:source:push #899
Comments
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. |
I think this issue is similar to this issue, #881. sfdx plugins:install [email protected] |
Yeah same issue here... I thought my Scratch Org had expired so I run |
Same here. I get |
I'm not sure but I have been experiencing this since sometime last year. I haven't looked at the code but my understanding is that this was caused by some changes made in response to JWT authentication in CI when the JWT token was taken away after initial authorization. I think the change causes I don't think this had a specific resolution attached but this was some of the discussion: #81 I think there was another ticket where the resolution was discussed but I can't find it right now. |
The REST API does not auto-refresh like it does with SOAP via jsforce. This is a bug and is being tracked internally with W-9016781. |
The problem with "Error: INVALID_SESSION_ID: Session expired or invalid" is getting very annoying as it happens with not very long inactivity, and then you need to get the access token refreshed again by for instant using: This happens several times a day for the same user/org. Are there changes done to the authentication model that I have not caught? |
This is interesting. We contacted support and they sent us to this issue. It doesn't look like there's any appetite on Salesforce's side to fix this obvious regression in the CLI. Wondering if it's a new direction SF is taking where they've got so much money now, they think their customers don't matter anymore. Let's see... |
Also experiencing this issue |
Same here, also have this issue across different production orgs 😞 |
This has now been acknowledged by Salesforce as a known issue. Please "vote" for it by clicking the This Issue Affects me button on https://success.salesforce.com/issues_view?id=a1p4V000001Zh1GQAS. Thanks! |
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 was all related to this #942 You might still be able to achieve this error by intentionally using the metadata rest api option. If that happens, stop using the rest option. |
Potentially important qualification: I've been working with Shane McLaughlin to help verify the new
org
commands, so those were installed when this happened.Yesterday I ran into a situation where a call to
sfdx force:source:push
resulted in the following error:The immediate next execution of the same command completed without issue. Generally (i.e., with close to 100% consistency) commands refresh the access token if necessary before executing, so it was surprising to see this happen all of a sudden.
I'm happy to provide any additional diagnostic info I can, but given that I've only seen this once, it's going to be difficult to provide steps to reproduce, or even to reproduce it myself locally.
The text was updated successfully, but these errors were encountered: