-
-
Notifications
You must be signed in to change notification settings - Fork 9
feat: return custom error #1
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
Conversation
|
In summary, I'm ok with a typed error but the "retryable" part should be removed. |
|
Can you give me an example of the response body related to the rate limit? |
|
Running this command: secret.json just contains my apikey and secretapikey. Returns this on the 3rd or 4th loop I'm going to work on a test at some point this weekend hopefully. |
This comment was marked as off-topic.
This comment was marked as off-topic.
6b61c7b to
027001a
Compare
This reverts commit 027001a.
54b69b4 to
982b91c
Compare
ee89bc8 to
18d9dd6
Compare
ldez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi! Thanks for this library. I'm currently using it in https://github.com/cullenmcdermott/terraform-provider-porkbun and someone reported they were hitting rate limits from Porkbun.
I was having trouble parsing the error out so I've made some updates to return a custom error and to tell us if it should be retryable or not. I haven't added additional tests for this but I'm happy to if you'd like.