Closed corentindoctolib closed 3 months ago
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.
same issue here
same here
I have the same issue
a few questions:
1) Are these failures more frequent on CI where new scratch orgs are created? the screenshot looks like it's from CI. 2) if so, how do you authenticate to scratch orgs?
related: https://github.com/forcedotcom/cli/issues/1640#issuecomment-1286961544
the comment from above refers to this failure when trying to auth to a new scratch org using its creds, but this same flow happens when refreshing an expired access token.
Also, can you provide enable debug logs (pass --dev-debug
flag) and share the results from the failure?
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.
Summary
An error occur randomly when running the command
sf apex run test --test-level RunLocalTests
on a Scratch org :Unknown error in Apex Library: Error authenticating with JWT.
This seems to happen in 25% of executions.See error below :
And sometimes (75%), the execution is successful :
Steps To Reproduce
Private repo, sorry.
Expected result
The Apex tests are executed without loosing the auth. to the Scratch Org.
Actual result
Sometimes, an error occur :
Unknown error in Apex Library: Error authenticating with JWT.
System Information
Additional information