Skip to content

async client raises IPv4 or IPv6 address ValueError for URL "https://eodhistoricaldata.com" #2167

Answered by graingert
topher-lo asked this question in General
Discussion options

You must be logged in to vote

running the demo I get:

Traceback (most recent call last):
  File "/home/graingert/projects/distributed/demo.py", line 8, in <module>
    asyncio.run(get())
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/graingert/projects/distributed/demo.py", line 5, in get
    r = await httpx.get("https://eodhistoricaldata.com")
TypeError: object Response can't be used in 'await' expression

Replies: 12 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tomchristie
Comment options

@topher-lo
Comment options

Comment options

You must be logged in to vote
2 replies
@graingert
Comment options

@topher-lo
Comment options

Answer selected by topher-lo
Comment options

You must be logged in to vote
3 replies
@graingert
Comment options

@antonagestam
Comment options

@robmoore
Comment options

Comment options

You must be logged in to vote
2 replies
@tomchristie
Comment options

@larsblumberg
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@tomchristie
Comment options

@megamorf
Comment options

@luminoso
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@sbor23
Comment options

@tomchristie
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sbor23
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #2166 on April 05, 2022 13:45.