Bug: Godaddy is bad #54

Closed
opened 2025-11-20 04:19:26 -05:00 by saavagebueno · 15 comments
Owner

Originally created by @oozj on GitHub (Aug 6, 2020).

Originally assigned to: @qdm12 on GitHub.

2020-08-06T15:21:03.055Z ERROR HTTP status 401 - Unauthorized : Could not authenticate API key/secret

Originally created by @oozj on GitHub (Aug 6, 2020). Originally assigned to: @qdm12 on GitHub. 2020-08-06T15:21:03.055Z ERROR HTTP status 401 - Unauthorized : Could not authenticate API key/secret
Author
Owner

@qdm12 commented on GitHub (Aug 6, 2020):

Are you sure your API secret is valid?

@qdm12 commented on GitHub (Aug 6, 2020): Are you sure your API secret is valid?
Author
Owner

@jpherrell commented on GitHub (Aug 7, 2020):

I'm having the same issue. I can access the API myself using Postman and the same keys. Doesn't fail if there is nothing to update, but does if there is a change.

@jpherrell commented on GitHub (Aug 7, 2020): I'm having the same issue. I can access the API myself using Postman and the same keys. Doesn't fail if there is nothing to update, but does if there is a change.
Author
Owner

@qdm12 commented on GitHub (Aug 7, 2020):

Ok I'll check, maybe they changed their API. Should be done tomorrow.

@qdm12 commented on GitHub (Aug 7, 2020): Ok I'll check, maybe they changed their API. Should be done tomorrow.
Author
Owner

@qdm12 commented on GitHub (Aug 9, 2020):

Hello both, I checked and their API did not change wether to update DNS records or for authorization.

Unfortunately, I have no domain at GoDaddy anymore, can you please try

docker run -it --rm alpine:3.12
apk add curl
curl -X PUT -H "Authorization: sso-key [KEY]:[SECRET]" -H "Content-Type: application/json" -d '{"data":"127.0.01"}' "https://api.godaddy.com/v1/domains/[DOMAIN]/A/@"
exit

Replacing:

  • [KEY] by your API Key
  • [SECRET] by your API secret
  • [DOMAIN] by your domain
  • Eventually @ by your host (or subdomain)

And see/report back the response? That should update your record to 127.0.0.1 (nothing really). That should work according to Godaddy's doc and ddns-updater should do the exact same.

@qdm12 commented on GitHub (Aug 9, 2020): Hello both, I checked and their API did not change wether to update DNS records or for authorization. Unfortunately, I have no domain at GoDaddy anymore, can you please try ```sh docker run -it --rm alpine:3.12 apk add curl curl -X PUT -H "Authorization: sso-key [KEY]:[SECRET]" -H "Content-Type: application/json" -d '{"data":"127.0.01"}' "https://api.godaddy.com/v1/domains/[DOMAIN]/A/@" exit ``` Replacing: - `[KEY]` by your API Key - `[SECRET]` by your API secret - `[DOMAIN]` by your domain - Eventually `@` by your host (or subdomain) And see/report back the response? That should update your record to 127.0.0.1 (nothing really). That should work according to Godaddy's doc and ddns-updater *should* do the exact same.
Author
Owner

@jpherrell commented on GitHub (Aug 19, 2020):

Sorry it has taken so long for me to reply:

When I send a body of {"data":"127.0.0.1"} I get this from them:
{
"code": "INVALID_BODY",
"fields": [
{
"code": "UNEXPECTED_TYPE",
"message": "is not a array",
"path": "records"
}
],
"message":
"Request body doesn't fulfill schema, see details in fields"
}

When I send a body of
[
{
"data": "127.0.0.1",
"name": "@",
"ttl": 3600,
"type": "A"
}
]

it works fine.

On Sun, Aug 9, 2020 at 9:24 AM Quentin McGaw notifications@github.com
wrote:

Hello both, I checked and their API did not change wether to update DNS
records or for authorization.

Unfortunately, I have no domain at GoDaddy anymore, can you please try

docker run -it --rm alpine:3.12
apk add curl
curl -X PUT -H "Authorization: sso-key [KEY]:[SECRET]" -H "Content-Type: application/json" -d '{"data":"127.0.01"}' "https://api.godaddy.com/v1/domains/[DOMAIN]/A/@"exit

Replacing:

  • [KEY] by your API Key
  • [SECRET] by your API secret
  • [DOMAIN] by your domain
  • Eventually @ by your host (or subdomain)

And see/report back the response? That should update your record to
127.0.0.1 (nothing really). That should work according to Godaddy's doc and
ddns-updater should do the exact same.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/qdm12/ddns-updater/issues/91#issuecomment-671051841,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADC3FTVZPVGT6IRVHDAFAYLR72PQLANCNFSM4PWWOV5A
.

@jpherrell commented on GitHub (Aug 19, 2020): Sorry it has taken so long for me to reply: When I send a body of {"data":"127.0.0.1"} I get this from them: { "code": "INVALID_BODY", "fields": [ { "code": "UNEXPECTED_TYPE", "message": "is not a array", "path": "records" } ], "message": "Request body doesn't fulfill schema, see details in `fields`" } When I send a body of [ { "data": "127.0.0.1", "name": "@", "ttl": 3600, "type": "A" } ] it works fine. On Sun, Aug 9, 2020 at 9:24 AM Quentin McGaw <notifications@github.com> wrote: > Hello both, I checked and their API did not change wether to update DNS > records or for authorization. > > Unfortunately, I have no domain at GoDaddy anymore, can you please try > > docker run -it --rm alpine:3.12 > apk add curl > curl -X PUT -H "Authorization: sso-key [KEY]:[SECRET]" -H "Content-Type: application/json" -d '{"data":"127.0.01"}' "https://api.godaddy.com/v1/domains/[DOMAIN]/A/@"exit > > Replacing: > > - [KEY] by your API Key > - [SECRET] by your API secret > - [DOMAIN] by your domain > - Eventually @ by your host (or subdomain) > > And see/report back the response? That should update your record to > 127.0.0.1 (nothing really). That should work according to Godaddy's doc and > ddns-updater *should* do the exact same. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/qdm12/ddns-updater/issues/91#issuecomment-671051841>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ADC3FTVZPVGT6IRVHDAFAYLR72PQLANCNFSM4PWWOV5A> > . >
Author
Owner

@qdm12 commented on GitHub (Aug 19, 2020):

👍 That should be it, will fix it tonight. Thanks for answering back!

@qdm12 commented on GitHub (Aug 19, 2020): :+1: That should be it, will fix it tonight. Thanks for answering back!
Author
Owner

@qdm12 commented on GitHub (Aug 19, 2020):

Actually the program already sends [{"data":"127.0.0.1"}] as the body, can you try with just that body?
Referring to their API documentation, precisely to https://developer.godaddy.com/doc/endpoint/domains#/v1/recordReplaceTypeName, it seems only "data" is required in the body of the request; "name' and "type" are given in the URL.

Sorry I have no domain with GoDaddy so I'm a bit blind sighted for debugging it.

@qdm12 commented on GitHub (Aug 19, 2020): Actually the program already sends `[{"data":"127.0.0.1"}]` as the body, can you try with just that body? Referring to their API documentation, precisely to https://developer.godaddy.com/doc/endpoint/domains#/v1/recordReplaceTypeName, it seems only `"data"` is required in the body of the request; `"name'` and `"type"` are given in the URL. Sorry I have no domain with GoDaddy so I'm a bit blind sighted for debugging it.
Author
Owner

@jpherrell commented on GitHub (Aug 20, 2020):

I tried it with just [{"data": "127.0.0.1"}] and it worked as well. I'll
get the latest ddns-updater image and try another test run later today.

On Wed, Aug 19, 2020 at 9:46 PM Quentin McGaw notifications@github.com
wrote:

Actually the program already sends [{"data":"127.0.0.1"}] as the body,
can you try with just that body?
Referring to their API documentation, precisely to
https://developer.godaddy.com/doc/endpoint/domains#/v1/recordReplaceTypeName,
it seems only "data" is required in the body of the request; "name' and
"type" are given in the URL.

Sorry I have no domain with GoDaddy so I'm a bit blind sighted for
debugging it.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/qdm12/ddns-updater/issues/91#issuecomment-676847577,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADC3FTSL2MOKG53HECSQLK3SBR55VANCNFSM4PWWOV5A
.

@jpherrell commented on GitHub (Aug 20, 2020): I tried it with just [{"data": "127.0.0.1"}] and it worked as well. I'll get the latest ddns-updater image and try another test run later today. On Wed, Aug 19, 2020 at 9:46 PM Quentin McGaw <notifications@github.com> wrote: > Actually the program already sends [{"data":"127.0.0.1"}] as the body, > can you try with just that body? > Referring to their API documentation, precisely to > https://developer.godaddy.com/doc/endpoint/domains#/v1/recordReplaceTypeName, > it seems only "data" is required in the body of the request; "name' and > "type" are given in the URL. > > Sorry I have no domain with GoDaddy so I'm a bit blind sighted for > debugging it. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/qdm12/ddns-updater/issues/91#issuecomment-676847577>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ADC3FTSL2MOKG53HECSQLK3SBR55VANCNFSM4PWWOV5A> > . >
Author
Owner

@qdm12 commented on GitHub (Sep 14, 2020):

Hey sorry for being away for a while, but is it working again perhaps? If not, what's the error log message you get? Still an authentication error? Thanks!

@qdm12 commented on GitHub (Sep 14, 2020): Hey sorry for being away for a while, but is it working again perhaps? If not, what's the error log message you get? Still an authentication error? Thanks!
Author
Owner

@jpherrell commented on GitHub (Sep 14, 2020):

Sorry, it wasn't working last time I tried the latest code. Seems like it
was still an auth issue. Perhaps it's in the handling of the config string
that I'm passing to the container. Not sure.

Since I'm a developer myself, I wrote my own updater. So I haven't tried to
figure out what the issue was.

Sorry I can't be of any more help,
Jon

On Mon, Sep 14, 2020, 7:53 PM Quentin McGaw notifications@github.com
wrote:

Hey sorry for being away for a while, but is it working again perhaps? If
not, what's the error log message you get? Still an authentication error?
Thanks!


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/qdm12/ddns-updater/issues/91#issuecomment-692378121,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADC3FTSR7PAJMROQEBE6PM3SF2UFXANCNFSM4PWWOV5A
.

@jpherrell commented on GitHub (Sep 14, 2020): Sorry, it wasn't working last time I tried the latest code. Seems like it was still an auth issue. Perhaps it's in the handling of the config string that I'm passing to the container. Not sure. Since I'm a developer myself, I wrote my own updater. So I haven't tried to figure out what the issue was. Sorry I can't be of any more help, Jon On Mon, Sep 14, 2020, 7:53 PM Quentin McGaw <notifications@github.com> wrote: > Hey sorry for being away for a while, but is it working again perhaps? If > not, what's the error log message you get? Still an authentication error? > Thanks! > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/qdm12/ddns-updater/issues/91#issuecomment-692378121>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ADC3FTSR7PAJMROQEBE6PM3SF2UFXANCNFSM4PWWOV5A> > . >
Author
Owner

@qdm12 commented on GitHub (Sep 20, 2020):

Alright thanks for letting me know. Actually what's your script out of curiosity regarding the authorization part?
My code sets as header Authorization: sso-key [KEY]:[SECRET] are you using something different?

And @oozj did you manage to make it work perhaps?

@qdm12 commented on GitHub (Sep 20, 2020): Alright thanks for letting me know. Actually what's your script out of curiosity regarding the authorization part? My code sets as header `Authorization: sso-key [KEY]:[SECRET]` are you using something different? And @oozj did you manage to make it work perhaps?
Author
Owner

@jpherrell commented on GitHub (Sep 23, 2020):

My code is in Python/Django, but you'll get the point. I think we're doing
the same thing. I really think it's something I was doing setting the
parameters for the container.

go_daddy_url = "https://api.godaddy.com/v1/domains/" +

os.environ.get('GO_DADDY_DOMAIN', '') + "/records/A/@"
go_daddy_headers = {'Content-Type': 'application/json',
'Authorization': 'sso-key
{0}:{1}'.format(os.environ.get('GO_DADDY_KEY', ''),
os.environ.get('GO_DADDY_SECRET', ''))}
body = [{"data": self.current_address}]
response = requests.put(self.go_daddy_url,
headers=self.go_daddy_headers, json=body)

On Sun, Sep 20, 2020 at 6:04 PM Quentin McGaw notifications@github.com
wrote:

Alright thanks for letting me know. Actually what's your script out of
curiosity regarding the authorization part?
My code sets as header Authorization: sso-key [KEY]:[SECRET] are you
using something different?

And @oozj https://github.com/oozj did you manage to make it work
perhaps?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/qdm12/ddns-updater/issues/91#issuecomment-695842073,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADC3FTSBM57O2EO5TII6WFTSGZ36LANCNFSM4PWWOV5A
.

@jpherrell commented on GitHub (Sep 23, 2020): My code is in Python/Django, but you'll get the point. I think we're doing the same thing. I really think it's something I was doing setting the parameters for the container. go_daddy_url = "https://api.godaddy.com/v1/domains/" + os.environ.get('GO_DADDY_DOMAIN', '') + "/records/A/@" go_daddy_headers = {'Content-Type': 'application/json', 'Authorization': 'sso-key {0}:{1}'.format(os.environ.get('GO_DADDY_KEY', ''), os.environ.get('GO_DADDY_SECRET', ''))} body = [{"data": self.current_address}] response = requests.put(self.go_daddy_url, headers=self.go_daddy_headers, json=body) On Sun, Sep 20, 2020 at 6:04 PM Quentin McGaw <notifications@github.com> wrote: > Alright thanks for letting me know. Actually what's your script out of > curiosity regarding the authorization part? > My code sets as header Authorization: sso-key [KEY]:[SECRET] are you > using something different? > > And @oozj <https://github.com/oozj> did you manage to make it work > perhaps? > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/qdm12/ddns-updater/issues/91#issuecomment-695842073>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ADC3FTSBM57O2EO5TII6WFTSGZ36LANCNFSM4PWWOV5A> > . >
Author
Owner

@qdm12 commented on GitHub (Sep 23, 2020):

Nice thanks a lot for sharing, I'll cross compare to ensure we have the same thing 😄

@qdm12 commented on GitHub (Sep 23, 2020): Nice thanks a lot for sharing, I'll cross compare to ensure we have the same thing 😄
Author
Owner

@qdm12 commented on GitHub (Sep 23, 2020):

Thanks again for sharing. It is indeed exactly the same 😄 Let's close the issue unless someones encounters the problem again. Did you have any funny characters in your key or secret perhaps?

@qdm12 commented on GitHub (Sep 23, 2020): Thanks again for sharing. It is indeed exactly the same 😄 Let's close the issue unless someones encounters the problem again. Did you have any funny characters in your key or secret perhaps?
Author
Owner

@jpherrell commented on GitHub (Sep 23, 2020):

I thought of that. Mostly alphanumeric, and nothing that would require
escaping.

On Wed, Sep 23, 2020, 9:12 PM Quentin McGaw notifications@github.com
wrote:

Thanks again for sharing. It is indeed exactly the same 😄 Let's close
the issue unless someones encounters the problem again. Did you have any
funny characters in your key or secret perhaps?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/qdm12/ddns-updater/issues/91#issuecomment-698053298,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADC3FTVSI73BFFO7EQL7KJ3SHKMI3ANCNFSM4PWWOV5A
.

@jpherrell commented on GitHub (Sep 23, 2020): I thought of that. Mostly alphanumeric, and nothing that would require escaping. On Wed, Sep 23, 2020, 9:12 PM Quentin McGaw <notifications@github.com> wrote: > Thanks again for sharing. It is indeed exactly the same 😄 Let's close > the issue unless someones encounters the problem again. Did you have any > funny characters in your key or secret perhaps? > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/qdm12/ddns-updater/issues/91#issuecomment-698053298>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ADC3FTVSI73BFFO7EQL7KJ3SHKMI3ANCNFSM4PWWOV5A> > . >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#54