amosjyng / langchain-visualizer

Visualization and debugging tool for LangChain workflows
MIT License
723 stars 52 forks source link

TimeoutError: Server didn't start within 10 seconds #40

Closed lironezra closed 1 year ago

lironezra commented 1 year ago

Hi :)

I'm encountering an error message when I ask my chatbot every questions. Is there an option to increase the timeout or is there another solution available?

Thanks!

amosjyng commented 1 year ago

Hey there! :)

What environment are you running this in?

Could you try using the latest version, 0.0.24, to see if there's any command output being logged? You should now see something like ICE server failed to start. Command output:

To increase the timeout, you can now do

import langchain_visualizer
langchain_visualizer.ice.server.ICE_WAIT_TIME = 2

But I think it's unlikely that the time to start up the visualization server is the issue here :P

lironezra commented 1 year ago

Hey @amosjyng

Thank you for your reply. I upgraded the package, but I'm still encountering this error. Could you clarify what you mean by 'the environment I am using'? I also tried to run the example from the documentation, but it isn't working either.

amosjyng commented 1 year ago

Ah yeah, unfortunately the update was mostly just to provide better debug info, so it wouldn't really change anything else about how it runs.

Do you now see a line in the log output that says

ICE server failed to start. Command output:

If so, what output do you see from the command?

By "environment," I meant what OS are you running this on? And are you running it in Jupyter?

lironezra commented 1 year ago

So regarding the environment it's Windows, I didn't get this message like you said and I don't using Jupyter. When I starts the program this is what I got: (When I click on the URL it takes me to unreachable site) image

and after few seconds I got this Exception: image

Hope it will help you to understand my problem :) Thanks!

amosjyng commented 1 year ago

Oh interesting! Thanks, I'll try to reproduce it.

In the meantime, can you see what happens when you run the following command?

python -m ice.server start
amosjyng commented 1 year ago

Hey @lironezra @biwa7636 , sorry for the wait! I finally reproduced the problem on Windows and I think I've fixed it. Can you please check the latest version 0.0.25?

Thanks!