question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SystemError when record contains special characters.

See original GitHub issue

Hi, I have a very similar problem to this solved issue:

import asyncio
import aiodns

loop = asyncio.get_event_loop()
resolver = aiodns.DNSResolver(loop=loop)
result = loop.run_until_complete(resolver.query('xn--cardeosapeluqueros-r0b.com', 'MX'))
print(result)

I get this error and the program hangs.

Exception ignored in: functools.partial(<function DNSResolver._callback at 0x7fe1067b2ea0>, <Future pending cb=[_run_until_complete_cb() at /usr/local/lib/python3.6/asyncio/base_events.py:176]>)
Traceback (most recent call last):
  File "/home/steven/Envs/vPandapipe/lib/python3.6/site-packages/aiodns/__init__.py", line 56, in _callback
    if fut.cancelled():
SystemError: <built-in method cancelled of _asyncio.Future object at 0x7fe106ee7828> returned a result with an error set

Looking further I found that this problem happens when the result of the query has special characters, Doing a ns lookup I found this for MX:

Non-authoritative answer:
 xn--cardeosapeluqueros-r0b.com mail exchanger = 10 carde\241osapeluqueros.com.

Querying SOA for ayesas.com. Its record also contains a special character:

Non-authoritative answer:
ayesas.com
	origin = ns2.3c1b.com
	mail addr = adm\253n.domain.com
	serial = 2015010244
	refresh = 3600
	retry = 600
	expire = 1209600
	minimum = 3600

I’m using aiodns 1.1.1 and pycares 2.3.0.

Thank you!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
saghulcommented, Jan 8, 2019

Almost a year later… I’m preparing a new pycares release here: https://github.com/saghul/pycares/pull/83 and then I’ll update this library to use it and this bug will be fixed.

I took the liberty of using your domain examples as tests 😃

0reactions
saghulcommented, Jan 17, 2019

This is not fixed in the ongoing V2 PR: https://github.com/saghul/aiodns/pull/54 which depends on the new pycares 3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internal System error encountered - During Vault Submissions ...
If the error occurs for ALL submission imports, this can be caused by an unexpected required field on the Submissions Archive Document Type...
Read more >
Errors using special characters in Access databases - Office
Lists the special characters to avoid using when you work with the database object names or the field names in all versions of...
Read more >
Salesforce System Error: 208410828-86802 (1615802660) #14
When doing a test conversion (all records, ~26000) in the sandbox, ... I'll make sure to include this with the special character conversion...
Read more >
Connexion client known issues - OCLC Support
As a workform, the record should not have an OCLC number in field 001. ... The Enter Diacritics and Special Characters window (...
Read more >
Find all special characters in a column in SQL Server 2008
So, it seems to me that I would have to get a list of every non-alphabet / non-number character, then run a SELECT...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found