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

Add network exception to management (#603) #608

Merged
merged 2 commits into from
Mar 13, 2022

Conversation

sepiariver
Copy link
Contributor

Changes

A per issue #603 this PR adds a method to Auth0\SDK\Exception\NetworkException in order to raise errors returned by the API when exchanging credentials for a management token.

For users of the SDK, they may save a lot of time debugging, because previously the error was (mis)represented as a Auth0\SDK\Exception\ConfigurationException

References

#603

Resolves #603

Testing

composer tests pass. A new unit test is included in this PR. All php version-specific tests pass.

Contributor Checklist

@sepiariver sepiariver requested a review from a team as a code owner March 12, 2022 19:50
@sepiariver
Copy link
Contributor Author

sepiariver commented Mar 12, 2022

🤔 I don't seem to be able to trigger that test failure locally with composer tests:infection ...? (and I don't have permission to re-run the job, for good reason ;)

Also the snyk errors look like: snyk requires an authenticated account. Please run snyk auth and try again.

Copy link
Member

@evansims evansims left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @sepiariver 👋 Thanks for these contributions! Looks great. I kicked our test suite to fix the infection error (it randomly breaks sometimes). Really appreciate the help! I'll cut a new release with these changes next week sometime

@evansims evansims merged commit 4e19ed9 into auth0:main Mar 13, 2022
@sepiariver sepiariver deleted the 603-mgmt-token-api-errors-throw branch March 13, 2022 01:39
@evansims evansims added this to the 8.2.0 milestone Mar 21, 2022
@evansims evansims mentioned this pull request Apr 25, 2022
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Management::getHttpClient errors are opaque when acquiring token
2 participants