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

There is no current event loop in thread 'Thread-1' #77

Open
autn opened this issue Oct 17, 2024 · 0 comments
Open

There is no current event loop in thread 'Thread-1' #77

autn opened this issue Oct 17, 2024 · 0 comments

Comments

@autn
Copy link

autn commented Oct 17, 2024

Hi, I'm using Zyte API for my Django project, but when I use Zyte, I get There is no current event loop in thread 'xxx' error.

My code:

from zyte_api import ZyteAPI

def omnifollow_product_extract(product_url):
    zyte_api_key = os.environ.get("ZYTE_API_KEY", "")
    client = ZyteAPI(api_key=zyte_api_key)
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

1 participant