If oauth token api returns error due to any issue, it breaks the application

Created on 18 June 2025, 15 days ago

Application does not handles error effectively. when oauth token api throws an error

Error - GuzzleHttp\Exception\ClientException: Client error: `POST https://test.salesforce.com/services/oauth2/token` resulted in a `400 Bad Request` response: {"error":"invalid_grant","error_description":"expired access/refresh token"} in GuzzleHttp\Exception\RequestException::create() (line 111 of /app/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php).

🐛 Bug report
Status

Needs review

Version

5.1

Component

salesforce.module

Created by

🇮🇳India Koustubh Dudhe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024