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

Update the URI for Porkbun's API #2069

Merged
merged 5 commits into from
Dec 5, 2024
Merged

Update the URI for Porkbun's API #2069

merged 5 commits into from
Dec 5, 2024

Conversation

erik434
Copy link
Contributor

@erik434 erik434 commented Oct 14, 2024

The new URI is live now; the old one will stop accepting API calls on December 1st, according to this email I got from them:

image

Their documentation already references the new URI and confirms that the old one is deprecated: https://porkbun.com/api/json/v3/documentation

I confirmed the new URI seems to work here by running a few manual commands (like lexicon porkbun list <mydomain> A), and was also able to use the updated porkbun.py to generate new Let's Encrypt certs via dehydrated in a live TKL Core VM.

As I was updating the Porkbun test cassettes, I ran into Porkbun's rate limits, so ended up adding retries when we get a 503 response, following a pattern I saw used in the DNSMadeEasy provider. This lets the tests pass, but the 503's clutter up the recorded data, so I also filtered those responses out in _filter_response.

Please take a look and let me know if there's anything else I should do here. Thanks!

The new URI is live now; the old one will stop accepting API calls on
December 1st.

New URI is documented at https://porkbun.com/api/json/v3/documentation
Added notes for others who may want to run the tests.

Also filtering out any 503 responses from the recordings since they
aren't important.
@adferrand
Copy link
Collaborator

Excellent contribution, with a good usage of vcrpy, and I appreciate the inline comments to help maintaining the tests and cassettes. Thanks a lot.

I rebased your PR in #2129 with the recent changes I did who removes in particular issues associated to Python 3.8. All tests I green, so this LGTM!

@adferrand adferrand merged commit d2567ca into AnalogJ:master Dec 5, 2024
7 of 11 checks passed
@erik434
Copy link
Contributor Author

erik434 commented Dec 5, 2024

@adferrand Thanks! Happy to help.

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

Successfully merging this pull request may close these issues.

2 participants