-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error: status: 202 message: #64
Comments
|
@cullenmcdermott @parabolala does the plugin mantained? |
Hi, yes it is maintained I have not abandoned this. I have not had time to take a look. If the fix seems simple I'd encourage you to submit a PR and I'd be happy to review it. |
@cullenmcdermott sorry, I'm not a go developer. Looks like problem happance periodically for my resources, and it not connected with api update. thats strange. Maybe it connected with many threads run? terraform apply -parallelism=20 |
the issue can be closed, I'm not using porkbun dns anymore |
the issue should not be closed, still an issue for those using porkbun. i think 202 means 'accepted, but still processing' or maybe 'valid request, but i cant change things until pending changes occur'. pending changes might mean for that domain, or total number of changes for the account has hit a rate limit, or both, i'm unsure i just had this issue and now i'm unsure what, if any, changes happened in porkbun and the tfstate didn't get properly updated since it didn't complete. i think 202 probably would need a long wait and then check if item completed and if not then retry, i think rest requests go into a queue of sorts. i see a maxRetries with a default of 10, but it appears go-retryablehttp only has automatic retries and exponential backoff if the request fails or http range 500. i guess if 202 has the id, then next is to store the id and loop over 'get' until it arrives? or possibly consider a 202 'good'? unclear to me. if 202 doesn't have the id idk what you would do other than loop over get until you see a new record somehow. this caused me a bunch of manual work to remove all the existing records manually and try again. i can roll out in stages for my next update, but still pretty worried about this process, i think any time this occurs it doesnt record the id for the 202. edit: also wrote some scripts to delete all the records from porkbun, remove tainted resources from state.
neither of these is that well-written and they are specific to my uses, but maybe someone will find them helpful. i use sops and nix but neither is too much needed for these scripts. if you replace out the sops part with your keys it ought to work. delete_all_dns_records retrieves all records for the domains in domains.txt, then deletes all matching types used on the main domain and set of subdomains. it could be smarter, retrieve all records and then pass retrieved records into delete commands. but this worked fine after rerunning it a few times and adding some sleeps. |
Last days I see errors in the log during terraform updates
looks like porkbun have updates api and return 202 instaead of 200
The text was updated successfully, but these errors were encountered: