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

DNSimple Plugin regression #549

Closed
dvdgutzmann opened this issue May 23, 2024 · 3 comments
Closed

DNSimple Plugin regression #549

dvdgutzmann opened this issue May 23, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@dvdgutzmann
Copy link

Hi!

In 01c3764 the Write-Debug (https://github.com/rmbolger/Posh-ACME/blame/8236403fff306555f0ec9a7eb7ecf2ed33653d9f/Posh-ACME/Plugins/DNSimple.ps1#L253) was guarded with an if-statement. The Write-Debug was later in ea925c8 replaced with a throw - which now causes our orchestrating code to crash. The condition should be corrected to $_.Exception.Response.StatusCode -ne 404

            if ($_.Exception.Response.StatusCode -ne 404) {
                throw
            }

Thanks! David

@rmbolger
Copy link
Owner

Hey @dvdgutzmann, thanks for reaching out. Sorry about that. This looks to be a PowerShell 5.1 specific issue I had forgotten was different. The Microsoft.PowerShell.Commands.HttpResponseException that PS 7+ returns does actually have a StatusCode field. But the System.Net.WebException that PS 5.1 returns doesn't.

I should have it fixed shortly.

@rmbolger rmbolger self-assigned this May 23, 2024
@rmbolger rmbolger added the bug Something isn't working label May 23, 2024
@rmbolger
Copy link
Owner

Fix live in 4.23.1

@dvdgutzmann
Copy link
Author

Thank you very much - everything is working as expected again. Great response time, by the way. We really appreciate you!

Thanks! David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants