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

Event loop is closed #3

Closed
JarvisYan0802 opened this issue Apr 26, 2023 · 4 comments
Closed

Event loop is closed #3

JarvisYan0802 opened this issue Apr 26, 2023 · 4 comments
Assignees

Comments

@JarvisYan0802
Copy link

I've run the demo py file. It can return the message I want correctly, but always raises a RuntimeError: "Event loop is closed". How dose it happen and what can I do?

@drazvan
Copy link
Collaborator

drazvan commented Apr 26, 2023

Hi @JarvisYan0802 ! Can you provide more details on this? I am not able to reproduce the error. Did you change anything to the demo.py file? If not, can you share more details about the environment (i.e. python version, venv or not, OS)? Thanks!

@drazvan drazvan self-assigned this Apr 26, 2023
@armstrongsam25
Copy link

Happening for me, too.
errors.txt

I was walking through the topical_rails example. It seems to happen randomly. I modified the script slightly by putting the rails.generate() function in a try/except and a while loop. Even though the exception occurred, it still generates output.
main_file.txt

@drazvan
Copy link
Collaborator

drazvan commented May 9, 2023

Thanks for reporting this @armstrongsam25! We need to investigate further as I can't reproduce yet. We'll keep you posted. What OS/python version are you using?

@armstrongsam25
Copy link

OS: Win11 Enterprise, Version 21H2, Build 22000.1880
Python: 3.8.10

@drazvan drazvan closed this as completed in 8f789c4 Sep 1, 2023
drazvan pushed a commit that referenced this issue Jun 5, 2024
added changes to show multi-guardrail output
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

3 participants