UnklAdM/update-godaddy-dns

Issue getting this to work

Closed this issue · 1 comments

Hey,

I think i used to use the original version of this script and then it broke about a year ago which i then managed to resolve.

Last night i realised it had failed again when my IP address changed.

I found this and thought great, a replacement i can stop in and happy days. Unfortunately when I'm running this I'm getting an error. Can you help

`PS C:\AUTOUPDATEIP> C:\AUTOUPDATEIP\update_gd_dns.ps1
Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel.
At C:\AUTOUPDATEIP\update_gd_dns.ps1:25 char:11

  • $result = Invoke-WebRequest https://api.godaddy.com/v1/domains/$domai ...
  •       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

ConvertFrom-Json : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\AUTOUPDATEIP\update_gd_dns.ps1:26 char:29

  • $content = ConvertFrom-Json $result.content
  •                         ~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [ConvertFrom-Json], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ConvertFromJsonCommand

CurrentIP: 82.40.133.62
Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel.
At C:\AUTOUPDATEIP\update_gd_dns.ps1:34 char:15

  • ... $result = Invoke-WebRequest https://api.godaddy.com/v1/domains/$dom ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand`

Turns out it was something on my domain controller blocking this.