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

ValueError: 'go.magik.ly' does not appear to be an IPv4 or IPv6 address #163

Open
septfish opened this issue May 9, 2020 · 2 comments
Open

Comments

@septfish
Copy link

septfish commented May 9, 2020

I followed the official documentation and added a link to report this. Using curio ’s taskgroups, there were no errors. Can anyone help me explain what the reasons are and how to operate them correctly

@carlbordum
Copy link
Contributor

Hi @septfish. Can you share a code snippet that gives this error?

thanks :-)

@septfish
Copy link
Author

def test2():
results = {}
url_list = ['http://www.baidu.com']
async def worker(key, url):
r = await s.get(url)
results[key] = r

async def main(url_list):
    url_dict = dict(enumerate(url_list))
    for key, url in url_dict.items():
        await curio.spawn(worker(key, url))

sorted_results = [response for _, response in sorted(results.items())]

s = asks.Session(connections=10)
curio.run(main(url_list))
return sorted_results

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