observerss / pygodaddy Goto Github PK
View Code? Open in Web Editor NEW3rd Party Client Library for Manipulating Go Daddy DNS Records.
Home Page: https://pygodaddy.readthedocs.org/
License: Other
3rd Party Client Library for Manipulating Go Daddy DNS Records.
Home Page: https://pygodaddy.readthedocs.org/
License: Other
Since 2 days now I get an error when I run pygodaddy without making any changes. I tried with a previous, working installation but even ten I keep getting the error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pygodaddy/godaddy.py", line 87, in
update_dns(public_ip)
File "/usr/local/lib/python2.7/dist-packages/pygodaddy/godaddy.py", line 46, in update_dns
client.login(GODADDY_USERNAME, GODADDY_PASSWORD)
File "/usr/local/lib/python2.7/dist-packages/pygodaddy/client.py", line 99, in login
r = self.session.get(self.default_url)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 487, in get
return self.request('GET', url, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, *_send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 585, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 467, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='dns.godaddy.com', port=443): Max retries exceeded with url: /default.aspx (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x762c2510>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Can't seem to connect to dns.godaddy.com but I don't know if this is a godaddy issue or shoudl I be looking at my installation?
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 516, in urlopen
body=body, headers=headers)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 304, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 724, in validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 237, in connect
ssl_version=resolved_ssl_version)
File "/usr/lib/python3/dist-packages/urllib3/util/ssl.py", line 123, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.4/ssl.py", line 364, in wrap_socket
_context=self)
File "/usr/lib/python3.4/ssl.py", line 577, in init
self.do_handshake()
File "/usr/lib/python3.4/ssl.py", line 804, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 362, in send
timeout=timeout
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 543, in urlopen
raise SSLError(e)
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "godaddy-dyndns.py", line 19, in
config.get('godaddy', 'password'))
File "/usr/local/lib/python3.4/dist-packages/pygodaddy/client.py", line 99, in login
r = self.session.get(self.default_url)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 469, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 420, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
Login html string should be updated:
self.logged_in = bool(re.compile(r'id="menu-customer-name">(.*)</a>').search(html))
self.logged_in = bool(re.compile(r'Customer Number: ').search(html))
Hi,
I used to get this once in a while (I run a script every hour and it would happen maybe once every few days), and I had attributed the error it to my ISP or the internet.
But now I am getting this error every single time. Any thoughts on what might be causing this?
I am running pygodaddy 0.2.2 on Ubuntu 3.19.0-25-generic
Traceback (most recent call last):
File "./godaddy.py", line 14, in <module>
client.login(GODADDY_USERNAME, GODADDY_PASSWORD)
File "/usr/local/lib/python2.7/dist-packages/pygodaddy/client.py", line 99, in login
r = self.session.get(self.default_url)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 480, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 597, in send
history = [resp for resp in gen] if allow_redirects else []
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 195, in resolve_redirects
**adapter_kwargs
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 447, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: bad handshake: SysCallError(104, 'ECONNRESET')
The caller of update_dns_record cannot tell if the update failed, eg due to unexpected web site change. Or was not required, because the value was unchanged.
"client.update_dns_record('domain.co.uk', ip)"
This does not appear to work on co.uk domains. Yet it works fine for .com and .net domains.
deleted and closed
Hi,
either on python 2.7 or 3, i can not login anymore with pygodaddy module. It return false and i have no more clue why.
Thanks to help.
This has been working fine until recently (6th March I think). I made no changes but pygodaddy no longer updates the A records on Goddaddy for my .net .com or .co.uk sites. It says in the log that it is updating but if I do it manually in the python console the return from client.update_dns_record() is "false".
update:
I have downgraded to pygodaddy 0.1.7. and the updating of the .net and .com domains appears to work with this version so the problem is directly related to the recent update 0.1.8. to fix domains with multi-dotted TLDs
Hi, I recall writing to you a long time ago requesting to be made into a maintainer on the PyPI package so that I could help publish the lib, if you wished to accept my help. However, I never received a response so I assumed you weren't interested. Some many months later, I realized that I was added to the package as maintainer, when I logged into PyPI web interface.
I'd like to respectfully resign as a maintainer because I am not actively working on pygodaddy and the role should be given to any of the more active contributors instead.
Thanks for the library and keep up the good work.
I installed pygodaddy and have no idea were to go from here. Where are the config changes made? What are the "quick start" directions telling me to do? I am lost like an Easter egg.
Hello Jingchao Hu,
I hope you read this bug issue :)
I am using your pygodaddy Libary for 1 Year and it worked perfectly fine till last week.
I've done some research and it looks like godaddy rejects the HTTP POST in the _save_records() method.
"<?xml version="1.0" encoding="utf-8"?><string xmlns="http://tempuri.org/">FAILURE|Invalid Request.</string>"
It looks like the Protocol has changed.
I used the following code for the last 2 methods:
result_up1 = client._add_record(prefix="foo", value="112.123.123.123", index=3, record_type="A")
result_up2 = client._save_records(domain="example.com", index=3, record_type="A")
result_up1 was true, and result_up2 was false.
I Googled ad bit and found this: "Godaddy CSRF protection". They fixed the Error. Maybe this is causing a Problem here? But i am not really sure, i am just guessing.
Thanks for this great Libary !
Hi!
Same problem as the previous issue. Sorry for making a new ticket, but it's clean now ๐ :).
Hello
From several days ago I have this error:
CANNOT login to GoDaddy
2015-12-14 17:57:53,680 Starting new HTTP connection (1): v4.ident.me
2015-12-14 17:57:54,753 My ip: x.x.x.x
2015-12-14 17:57:54,754 Starting new HTTPS connection (1): dns.godaddy.com
2015-12-14 17:57:55,597 Starting new HTTPS connection (1): idp.godaddy.com
2015-12-14 17:57:56,575 Starting new HTTPS connection (1): sso.godaddy.com
2015-12-14 17:57:58,243 Starting new HTTPS connection (1): mya.godaddy.com
2015-12-14 17:58:00,216 CANNOT login to GoDaddy
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.