Skip to content

BlockingPortalProvider fails on 2nd call with RuntimeError: Event loop is closed #743

Answered by agronholm
dhirschfeld asked this question in Q&A
Discussion options

You must be logged in to vote

If 1) httpx.AsyncClient defers the code path selection to the first use of the APIs, and 2) you never use both async and sync APIs from the same process, then you should be fine.

Replies: 9 comments 26 replies

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
1 reply
@agronholm
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
12 replies
@agronholm
Comment options

@dhirschfeld
Comment options

@agronholm
Comment options

@dhirschfeld
Comment options

@agronholm
Comment options

Comment options

You must be logged in to vote
12 replies
@dhirschfeld
Comment options

@agronholm
Comment options

@dhirschfeld
Comment options

@agronholm
Comment options

Answer selected by dhirschfeld
@dhirschfeld
Comment options

Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants