brianreumere / gandi-automatic-dns

Dynamic DNS shell script for Gandi
Other
100 stars 22 forks source link

Invalid XMLRPC input error #21

Closed rjlee closed 6 years ago

rjlee commented 7 years ago

Hi,

I use GAD to automatically update Gandi every 5 minutes via a simple cron:

curl -s ipinfo.io/ip | /usr/local/bin/gad -s -a xxx -d yyy-r '@' -v

This has worked fine for 6 months or so, but recently I've noticed the following error (using -v):

Date: Thu, 21 Sep 2017 19:47:24 GMT
Server: Apache
Content-Length: 319
Vary: Accept-Encoding
Connection: close
Content-Type: text/xml; charset=utf-8

<?xml version='1.0'?>
<methodResponse>
<fault>
<value><struct>
<member>
<name>faultCode</name>
<value><int>1</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Invalid XMLRPC input: invalid literal for int() with base 10: ''</string></value>
</member>
</struct></value>
</fault>
</methodResponse>
Activating version 1597 of the zonefile for domain yyyy...

openssl s_client output and domain.zone.version.set() method response:

HTTP/1.1 200 OK
Date: Thu, 21 Sep 2017 19:47:26 GMT
Server: Apache
Content-Length: 129
Vary: Accept-Encoding
Connection: close
Content-Type: text/xml; charset=utf-8

<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><boolean>1</boolean></value>
</param>
</params>
</methodResponse>

Tried to update the following A records to 90.216.168.70: @

I'm not sure if something has changed in gad that would cause the error ?

brianreumere commented 7 years ago

Can you run gad with the -e flag for debugging output and share it here?

rjlee commented 6 years ago

Forgot to respond on this. I was running an older version of gad. When I upgraded the problem went away.