Comments (4)
Thanks for the bug report! I'm curious what version of oobabot you're running.
The reason I ask is that from the specific error message, it seems to be referencing code that's probably several weeks old now. If that's the case would you be up for upgrading and seeing if the problem persists? It may will still happen, but it will be easier for me to help track it down if it's from more recent code.
You might want to check out the release notes when upgrading: https://github.com/chrisrude/oobabot/tree/main/docs
Let me know if you're still seeing it!
from oobabot.
I pulled the current version, now it connects but seems to error out on receiving the image:
←[33m2023-06-05 18:55:01,312←[0m DEBUG ←[36mStable Diffusion: Image request (nsfw: False): a dog in samurai armor←[0m
←[33m2023-06-05 18:55:07,931←[0m DEBUG ←[36mResponse to HelloI'mFellow done! tokens: 15, time: 6.42s, latency: 6.42s, rate: 2.34 tok/s←[0m
Task exception was never retrieved
future: <Task finished name='Task-38' coro=<ImageGenerator._generate_image() done, defined at C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\oobabot\image_generator.py:194> exception=ServerTimeoutError('Timeout on reading data from socket')>
Traceback (most recent call last):
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\oobabot\image_generator.py", line 204, in _generate_image
file = await image_task_to_file(image_task, image_prompt)
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\oobabot\image_generator.py", line 16, in image_task_to_file
await image_task
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\oobabot\sd_client.py", line 234, in do_post_with_retry
return await do_post()
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\oobabot\sd_client.py", line 212, in do_post
async with self.get_session().post(
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\aiohttp\client.py", line 1141, in aenter
self._resp = await self._coro
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\aiohttp\client.py", line 560, in _request
await resp.start(conn)
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\aiohttp\client_reqrep.py", line 899, in start
message, payload = await protocol.read() # type: ignore[union-attr]
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\aiohttp\streams.py", line 616, in read
await self._waiter
aiohttp.client_exceptions.ServerTimeoutError: Timeout on reading data from socket
←[33m2023-06-05 18:55:55,020←[0m DEBUG ←[36mConsidering unsolicited message in channel 901309170249257017 after 54 seconds, with chance 120%.←[0m
←[33m2023-06-05 18:55:55,287←[0m DEBUG ←[36mFound image prompt: ?←[0m
←[33m2023-06-05 18:55:55,287←[0m DEBUG ←[36mRequest from HelloI'mFellow←[0m
←[33m2023-06-05 18:55:55,287←[0m DEBUG ←[36mStable Diffusion: Image request (nsfw: False): ?←[0m
←[33m2023-06-05 18:56:01,756←[0m DEBUG ←[36mRepetition count for channel 901309170249257017 is 1←[0m
←[33m2023-06-05 18:56:01,756←[0m WARNING ←[33mRepetition found, will throttle history for channel 901309170249257017 in next request←[0m
←[33m2023-06-05 18:56:01,756←[0m DEBUG ←[36mResponse to HelloI'mFellow done! tokens: 15, time: 6.20s, latency: 6.20s, rate: 2.42 tok/s←[0m
Task exception was never retrieved
future: <Task finished name='Task-52' coro=<ImageGenerator._generate_image() done, defined at C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\oobabot\image_generator.py:194> exception=ServerTimeoutError('Timeout on reading data from socket')>
Traceback (most recent call last):
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\oobabot\image_generator.py", line 204, in _generate_image
file = await image_task_to_file(image_task, image_prompt)
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\oobabot\image_generator.py", line 16, in image_task_to_file
await image_task
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\oobabot\sd_client.py", line 234, in do_post_with_retry
return await do_post()
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\oobabot\sd_client.py", line 212, in do_post
async with self.get_session().post(
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\aiohttp\client.py", line 1141, in aenter
self._resp = await self._coro
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\aiohttp\client.py", line 560, in _request
await resp.start(conn)
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\aiohttp\client_reqrep.py", line 899, in start
message, payload = await protocol.read() # type: ignore[union-attr]
File "C:\TCHT\oobabooga_windows\installer_files\env\lib\site-packages\aiohttp\streams.py", line 616, in read
await self._waiter
aiohttp.client_exceptions.ServerTimeoutError: Timeout on reading data from socket
←[33m2023-06-05 18:56:09,592←[0m DEBUG ←[36mConsidering unsolicited message in channel 901309170249257017 after 69 seconds, with chance 70%.←[0m
I see that on the server the image was generated:
from oobabot.
What version is installed?
I'm asking since the log above was not generated from a recent version... from the line numbers, it would have to have been from v0.1.6 or earlier.
Versions that old had a bug where it would only wait 5 seconds for image generation before throwing this error, which is exactly what is happening in the logs you posted.
This was later fixed in this commit. I'm fairly optimistic that upgrading will solve the problem you're seeing.
8b81536
from oobabot.
Ahh man is there a good way to update the oobabot? I did a pull in a new location and launched it again from that location and looks like the 5 second limit is still there. I will try to update the SD file.
Just confirmed that the http_client.py file has sock_read=None
However it does time out after 5 seconds. I may need to wipe out everything and start from fresh?
I think i found the one reference to 5 seconds that was still left. Thank you for all the help!
it now looks like re-try is having issues :D but ill see if I can just re-install everything.
thank you
from oobabot.
Related Issues (20)
- [BUG] Different Outputs Streaming (More Coherent) vs Single Message (Writes Transcript) HOT 8
- What would cause the bot responses to be drastically different than that of the webui? HOT 4
- Won't connect to Stable Diffusion HOT 5
- Having Autobooga enabled just results in oobabot failing HOT 6
- Stripping newline characters breaks proper response handling... HOT 2
- Feature Request (or bug?): Prevent splitting response when code is involved.
- Feature Request: Internet capabilities
- Feature request: Reading files
- Empty Response HOT 7
- Circular Import issue HOT 2
- Unable to connect HOT 1
- API Changes HOT 17
- AttributeError: 'Persona' object has no attribute 'wakeword_patterns'
- Require mention each time HOT 2
- oobabot not working HOT 13
- Cannot import name 'GenericAlias' from partially initialized module 'types' -- circular import? HOT 2
- Translation
- discord token HOT 3
- gradio throws errors - outdated package? HOT 1
- Unable to connect. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oobabot.