0

I just spun up a new sandbox (couple of hours old) and I am trying to setup a CI/CD process using BitBucket Pipelines and sfdx. When I run the force:auth:jwt:grant command with hardcoded values (i.e. client id, jwtkeyfile) and I am getting intermittent successes and failures. The error message I am getting is " ERROR running force:auth:jwt:grant: We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: user hasn't approved this consumer". Again the sandbox is relatively new and this error message happens 50-60% of the time. Any ideas?

Bryan Anderson
  • 2,396
  • 14
  • 17

1 Answers1

0

So after 12 hours of sleeping, it seems as though the issue was DNS / Sandbox propagation. After waiting 12 hours, the authentication requests succeed every time now. Once again this is a very common issue with new Sandboxes and Authentication I have seen many times.

Bryan Anderson
  • 2,396
  • 14
  • 17