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

Expose error details in "UnexpectedException" in Python library #156

Open
charlie-zhang109 opened this issue Jun 20, 2024 · 1 comment
Open

Comments

@charlie-zhang109
Copy link

General information

  • SDK/Library version:4.28.0
  • Environment: Production

Issue description

When our backend tried to create a customer on BT side, we got the following UnexpectedError without a detailed message.

raise UnexpectedError("Unexpected HTTP_RESPONSE " + str(status))
braintree.exceptions.unexpected_error.UnexpectedError: Unexpected HTTP_RESPONSE 400

From this BT doc, looks like the client library needs to handle it.

Also Java library had this similar issue and it got fixed.

It would be helpful if that error was bubbled up to the exception, or generated a more specific exception like the Java library.

@charlie-zhang109
Copy link
Author

Could someone take a look? It prevents our customer adding their credit cards so we're losing revenue. Thanks!

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

1 participant