Skip to content
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

An error in OAuthTokenRequestException is preventing the Exception message to show #121

Open
croxarens opened this issue Jan 24, 2020 · 1 comment

Comments

@croxarens
Copy link

An expired token is leading to throw an OAuthTokenRequestException exception, but PHP is not able to return any message perhaps the $responseArray in Auth/UriOAuthService.php line 100, has all the info.

croxarens added a commit to croxarens/BingAds-PHP-SDK that referenced this issue Jan 24, 2020
…e and $message properties so that PHP can correctly Throw a message BingAds#121
@eric-urban
Copy link
Contributor

@croxarens do you have an example / repro? I see these error details printed with an invalid refresh token:

Error: invalid_grant
Description: AADSTS9002313: Invalid request. Request is malformed or invalid.
Trace ID: 03a61cfa-7e65-4b45-94b7-203ff85acd00
Correlation ID: 6d6bb595-0da8-497d-90f3-a713a712a7cd
Timestamp: 2020-07-06 22:44:10Z

Code snippet:

catch(OAuthTokenRequestException $e)
{
    printf("Error: %s\n", $e->Error);
    printf("Description: %s\n", $e->Description);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants