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

Get-AcmeRegistration throws terminating error and does not respect ErrorAction #234

Open
sdecker opened this issue Mar 15, 2017 · 4 comments

Comments

@sdecker
Copy link

sdecker commented Mar 15, 2017

I believe it should return null but at the very least it must respect ErrorAction SilentlyContinue. The fact that I must put a try/catch around it determine if i need to do New-AcmeRegistration is wrong

@sdecker
Copy link
Author

sdecker commented Mar 15, 2017

PS C:\Users\bcadroot> if (-not (Get-AcmeRegistration -ErrorAction SilentlyContinue) ) {New-ACMERegistration -Contacts "mailto:$email" -AcceptTos}
Get-AcmeRegistration : No registrations found
At line:1 char:11

  • if (-not (Get-AcmeRegistration -ErrorAction SilentlyContinue) ) {New- ...
  •       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-ACMERegistration], InvalidOperationException
    • FullyQualifiedErrorId : System.InvalidOperationException,ACMESharp.POSH.GetRegistration

@animetauren
Copy link

I think the error might be your Contacts Parameter, for my uses i never use the "mailto:" prefix to my email address. I know on the Wiki it shows it this way, but i just do plain and simple [email protected] and it works just fine. Try it out, and see if it works for you.

@davehope
Copy link

Just a "me too":

PS C:\Users\dave\Desktop> $acmeReg = Get-ACMERegistration -ErrorAction SilentlyContinue
Get-ACMERegistration : No registrations found
At line:1 char:12

  • $acmeReg = Get-ACMERegistration -ErrorAction SilentlyContinue
  •        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-ACMERegistration], InvalidOperationException
    • FullyQualifiedErrorId : System.InvalidOperationException,ACMESharp.POSH.GetRegistration

@ebekker
Copy link
Owner

ebekker commented Aug 2, 2017

Looks like @VitaliHarbiankou is taking care of this request in #261.

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

No branches or pull requests

4 participants