Bool Object Is not iterable

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
kpc180
Posts: 8
Joined: Thu Jul 15, 2021 3:24 pm

Bool Object Is not iterable

Post by kpc180 »

Hey! I'm having an error regarding the 'bool' error when searching for anything all morning.
Which from my searching in the past had to do with the ComicVine API issue, but I have that already in place and haven't had a similar error like that up until today. I also see another error that happens first when looking at the logs "Uncaught exception".

I'm running a Docker on Unraid.

Here is the error that pops up on screen when searching:

Code: Select all

500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/cherrypy/_cprequest.py", line 638, in respond
    self._do_respond(path_info)
  File "/usr/lib/python3.9/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
    response.body = self.handler()
  File "/usr/lib/python3.9/site-packages/cherrypy/lib/encoding.py", line 223, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/app/mylar/webserve.py", line 997, in searchit
    for x in searchresults:
TypeError: 'bool' object is not iterable
In the logs here is what happens

Code: Select all

2022-03-15 12:01:39	ERROR	Unable to retrieve results from ComicVine: 'bool' object is not iterable
2022-03-15 12:01:39	WARNING	[WARNING] ComicVine is not responding correctly at the moment. This is usually due to some problems on their end. If you re-try things again in a few moments, it might work properly.
2022-03-15 12:01:32	WARNING	[Error: expected string or bytes-like object] No Publisher found for Iron Man - you probably want to Refresh the series when you get a chance.
2022-03-15 12:01:26	ERROR	Uncaught exception: Traceback (most recent call last):
File "/app/Mylar.py", line 449, in
main()
File "/app/Mylar.py", line 415, in main
versioncheck.versionload()
File "/app/mylar/versioncheck.py", line 418, in versionload
version_info = getVersion()
File "/app/mylar/versioncheck.py", line 246, in getVersion
with open(version_file, 'a') as wf:
PermissionError: [Errno 13] Permission denied: '/app/.LAST_RELEASE'
2022-03-15 12:01:26	INFO	[LAST_RELEASE] Commit: dd3438e97fca9cd2933818310752c0bc09c36cab
2022-03-15 12:01:26	INFO	i: dd3438e97fca9cd2933818310752c0bc09c36cab
2022-03-15 12:01:26	INFO	[LAST_RELEASE] Version: v0.6.5
2022-03-15 12:01:26	INFO	[LAST_RELEASE] Branch: master
2022-03-15 12:01:26	INFO	i: (HEAD -> master, tag: v0.6.5)
2022-03-15 12:01:26	INFO	[DOCKER-AWARE] Docker installation detected.
2022-03-15 12:01:26	INFO	Starting Mylar on http://0.0.0.0:8090/
2022-03-15 12:01:26	INFO	[DIRECTORY-CHECK] Found DATA directory: /config
2022-03-15 12:01:26	INFO	Sucessfully ordered 538 series in your watchlist.
2022-03-15 12:01:26	INFO	Remapping the sorting to allow for new additions.
2022-03-15 12:01:26	INFO	[IMPRINT_LOADS] Successfully loaded imprints for 6 publishers
2022-03-15 12:01:26	INFO	[IMPRINT_LOADS] Loading Publisher imprints data from local file.
2022-03-15 12:01:26	INFO	Successfully discovered local IP and locking it in as : ---.--.-.11
2022-03-15 12:01:26	INFO	checked is None
2022-03-15 12:01:26	INFO	[]oldconfig_version: 12
2022-03-15 12:01:26	INFO	Correcting Null entries that make the main page break on startup.
2022-03-15 12:01:26	INFO	Ensuring DB integrity - Removing all Erroneous Comics (ie. named None)
2022-03-15 12:01:26	INFO	Checking to see if the database has all tables....
2022-03-15 12:01:26	INFO	[COMICTAGGER] Version detected: 1.3.4
2022-03-15 12:01:26	INFO	[PROBLEM_DATES] Problem dates loaded: ['2021-07-14 04:00:34']
2022-03-15 12:01:26	INFO	[MASS_PUBLISHERS] Auto-add for weekly publishers set to: []
Last edited by kpc180 on Tue Mar 15, 2022 4:25 pm, edited 1 time in total.
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Bool Object Is not iterable

Post by evilhero »

It's just as it states in the logs, comicvine isn't reachable so it can't do anything. There's nothing you can do until it comes back up. It's been going up and down all week for random intervals, so expect to have problems until they can stabilize things.

You also have a permission denied error within the mylar directory itself (the /app folder it looks like). Make sure the user running mylar has full access to the given directory, or else that error in regards to permissions won't be going anyway anytime soon.
kpc180
Posts: 8
Joined: Thu Jul 15, 2021 3:24 pm

Re: Bool Object Is not iterable

Post by kpc180 »

Great thanks! I wasn't sure if the two were connected... I probably shouldn't be allowed near computers.
KarenColumbo
Posts: 3
Joined: Wed Mar 16, 2022 7:41 am

Re: Bool Object Is not iterable

Post by KarenColumbo »

Got the same error - for the last 24 hours continually. Is there a way to contact ComicVine? Or should I just sit back an wait lest I get flamed to death by some angry CV-admin?
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Bool Object Is not iterable

Post by evilhero »

Fix is currently in python3-dev, will be merged up into the master branch later today as it's a critical patch.
KarenColumbo
Posts: 3
Joined: Wed Mar 16, 2022 7:41 am

Re: Bool Object Is not iterable

Post by KarenColumbo »

I sincerely hope it's not off-topic, but will this patch find its way to the respective docker container, too? Have Mylar3 in a portainer stack - which won't update the normal way ...
Offspring
Posts: 271
Joined: Fri Jan 02, 2015 3:26 am

Re: Bool Object Is not iterable

Post by Offspring »

You're not off-topic, and yeah. It's already hit the LSIO nightly container, and once it's been patched on the main branch, it'll hit the stable container too.
KarenColumbo
Posts: 3
Joined: Wed Mar 16, 2022 7:41 am

Re: Bool Object Is not iterable

Post by KarenColumbo »

Thx guys! You're the best!
Post Reply