Page 1 of 1
Unhandled Exception In Script ... TimeoutError: timed out
Posted: July 23rd, 2024, 9:06 am
by snkeyez95
Any idea what's causing this? Fresh Win 11 install and I have even tried reinstalling.

Re: Unhandled Exception In Script
Posted: July 23rd, 2024, 9:59 am
by sander
No image visible
Re: Unhandled Exception In Script
Posted: July 23rd, 2024, 11:26 am
by snkeyez95
The site is not allowing me to attach any links as a 'new user'. I can't even paste the text as it is detected as a link.
Re: Unhandled Exception In Script
Posted: July 23rd, 2024, 1:52 pm
by sander
Post the URL with dots in it
Re: Unhandled Exception In Script
Posted: July 25th, 2024, 4:21 pm
by snkeyez95
h.t.t.p.s:././.i.m.g.u.r.c.o.m./.a./.C.S.K.U.Y.E.l.
Re: Unhandled Exception In Script
Posted: July 25th, 2024, 11:23 pm
by sander
So:
https://imgur.com/a/CSKUYEl
(Sorry: I should have said "Post the URL with dots replaced with spaces. Anyway, it worked)
ChatGPT converted it to text
Code: Select all
Unhandled exception in script
Failed to execute script 'SABnzbd' due to unhandled exception: timed out
Traceback (most recent call last):
File "SABnzbd.py", line 1723, in <module>
File "SABnzbd.py", line 1218, in main
File "sabnzbd\decorators.py", line 44, in call_func
File "sabnzbd\__init__.py", line 314, in initialize
File "sabnzbd\dirscanner.py", line 68, in __init__
File "asyncio\events.py", line 823, in new_event_loop
File "asyncio\events.py", line 720, in new_event_loop
File "asyncio\windows_events.py", line 316, in __init__
File "asyncio\proactor_events.py", line 640, in __init__
File "asyncio\proactor_events.py", line 785, in _make_self_pipe
File "socket.py", line 646, in socketpair
File "socket.py", line 295, in accept
TimeoutError: timed out
Re: Unhandled Exception In Script
Posted: July 25th, 2024, 11:27 pm
by sander
I've never seen this.
The SAB specific thing is dirscanner. But then a time-out in socket (which is network, not disk).
Weird.
It's on Windows, so first guess is firewall/viruscanner blocking access, and thus causing a time-out.
What firewall and virusscanner are you using?
And: did you fill out anything for "Watched Folder" (so:
http://127.0.0.1:8080/sabnzbd/config/fo ... irscan_dir ). If so: remove that
Re: Unhandled Exception In Script ... TimeoutError: timed out
Posted: July 26th, 2024, 8:24 am
by snkeyez95
Windows 11. No 3rd party firewall/virus scanner. The 'Watched Folder' field is blank.
Re: Unhandled Exception In Script ... TimeoutError: timed out
Posted: July 26th, 2024, 2:10 pm
by sander
I would do this:
Stop SABnzbd
uninstall SABnzbd
find and delete %userprofile%\AppData\Local\sabnzbd\sabnzbd.ini and the whole directory %userprofile%\AppData\Local\sabnzbd
Then: install SABnzbd, click allow if Windows asks for it, and run it ... do you get the wizard? If not: you did not delete the SABnzbd.ini etc. Go back to step one.
If you get the wizard: only fill out one new server. Does it work? Can SABnzbd download? No errors?
Re: Unhandled Exception In Script ... TimeoutError: timed out
Posted: July 26th, 2024, 4:51 pm
by safihre
This is during startup in an internal part of Python.
Could you maybe try the latest Beta release? What version did you use now? I feel I fixed this problem before.
Sanders suggestion is also good to start with clean ini.
Re: Unhandled Exception In Script ... TimeoutError: timed out
Posted: July 29th, 2024, 7:22 am
by snkeyez95
I haven't seen this error since manually adding Sab to Win's firewall exclusion. Thanks everyone for your replies and support. I'll continue to monitor and try other suggestions if I do see this error popping up again.