Replies: 2 comments 1 reply
-
I will check it, thanks. I was having the same issues with the debug, but was not painful enough to look into it yet. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Super, nice, the API returns very helpful pointers for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was implementing a basic transaction setup first time with this library. A silly typo in the parameter code was very hard to debug, since the library hides any actual
errors
details returned from the API and only returns endpoint and error code.After some digging I found
apiclient.request_strategies.Request_Strategy._handle_bad_response
which uses theerror_handler
and sawpaddle_billing_client.client.PaddleApiClient
can be initiated with a customerror_handler
argument that can be customized.It might be worth documenting this as example, or even for sandbox mode enable a more detailed error handler like this by default:
Beta Was this translation helpful? Give feedback.
All reactions