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

NameCheap Create Error #1311

Open
laserjet25 opened this issue Jul 1, 2022 · 3 comments
Open

NameCheap Create Error #1311

laserjet25 opened this issue Jul 1, 2022 · 3 comments

Comments

@laserjet25
Copy link

laserjet25 commented Jul 1, 2022

When trying to add a TXT record to the NameCheap sandbox I receive the following error:

Remote: 3 To set: 4 Traceback (most recent call last): File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Python310\Scripts\lexicon.exe\__main__.py", line 7, in <module> File "C:\Python310\lib\site-packages\lexicon\cli.py", line 131, in main results = client.execute() File "C:\Python310\lib\site-packages\lexicon\client.py", line 90, in execute return self.provider.create_record(record_type, name, content) File "C:\Python310\lib\site-packages\lexicon\providers\base.py", line 79, in create_record return self._create_record(rtype, name, content) File "C:\Python310\lib\site-packages\lexicon\providers\namecheap.py", line 207, in _create_record self.client.domains_dns_add_host(self.domain, record) File "C:\Python310\lib\site-packages\lexicon\providers\namecheap.py", line 423, in domains_dns_add_host self.call("namecheap.domains.dns.setHosts", extra_payload) File "C:\Python310\lib\site-packages\lexicon\providers\namecheap.py", line 354, in call xml = self._fetch_xml(payload, extra_payload) File "C:\Python310\lib\site-packages\lexicon\providers\namecheap.py", line 390, in _fetch_xml raise _ApiError(0, "Unknown exception") lexicon.providers.namecheap._ApiError: 0 - Unknown exception

This is the command I ran:
lexicon namecheap create mydomain.com TXT --name Test2 --content ITWORKS --auth-token MyToken --auth-username MyUsername --auth-client-ip WhitelistedIP --auth-sandbox

@kaysond
Copy link
Contributor

kaysond commented Sep 30, 2023

@laserjet25 - did you ever figure this out?
@AnalogJ - any ideas?

@laserjet25
Copy link
Author

Wow, its already been a year.... I haven't tried this again since but had no luck in getting this to work with Namecheap. I'll probably try again sometime this week and see if it magically got fixed.

@kaysond
Copy link
Contributor

kaysond commented Oct 1, 2023

@laserjet25 so it turns out there's a bug in the code for reporting errors. If you fix the code as in #1743 (you can edit the file path mentioned in your stack trace), you should be able to see the real error.

In my case it was:

lexicon._private.providers.namecheap._ApiError: 2030288 - Cannot complete this command as this domain is not using proper DNS servers

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

2 participants