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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

erik434
Copy link

@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.
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.

1 participant