-
Notifications
You must be signed in to change notification settings - Fork 0
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
TypeError: 'bool' object is not iterable #1
Comments
I failed to reproduce this error, could you please provide me with the get_stream arguments at which this error occurs and any other information that will help reproduce the error (package version, part of your source code, startup parameters, system or something else) I used VCL if it matters. |
f24deb9 It'll now raise |
its the first try on linux with pm2 and venv, python 3.10, this error appears for any get stream. And i saw another error about dictionary changed |
fixed at c1d4d44 Upgrade to |
TypeError: got False (type <class 'bool'>) but expected type str | dict |
any chance to fix this? |
Сould you send the series season and episode on which this error occurs, or does it occur everywhere? |
it occurs with any |
I haven't any ideas at the moment... |
its okay i can just use windows server |
nah these windows servers are expensive, we need to fix that 💀 |
Since I don't get the same behavior, maybe for example you have redefined the |
nah, everything is OK, i launch it with pm2 and python3.10 by path /usr/bin/python3.10 |
receive_response_headers.complete return_value=(b'HTTP/1.1', 301, b'Moved Permanently', |
oh this error with bool appears in other libs, ig its cuz of 301 moved perm |
I doubt that this is because of 301, there is a check in the code that this is a redirect (301, 302) |
lol, i get this bool on windows server too. latest 3.11, 2012 r2. On local pc i dont get this error, nice |
hey there, some sites are blocked, will this lib support proxy??? |
Fixed af16c0f. Update to version 3.2.0. |
TypeError: got False (type <class 'bool'>) but expected type str | dict didnt help 3.2.0 |
I really don't understand, maybe if you tell me which series (values of |
do u have discord?? |
nikdissv#4299 |
will u accept the friend request? |
same issue: Traceback (most recent call last):
File "C:\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "D:\Development\Python\Projects\rezkaMovie\main.py", line 13, in main
stream = await player.get_stream(1, 1, translator_id) # raise AJAXFail if invalid episode or translator
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Development\Python\Projects\rezkaMovie\.venv311\Lib\site-packages\hdrezka\stream\player.py", line 88, in get_stream
return urls_from_ajax_response(
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Development\Python\Projects\rezkaMovie\.venv311\Lib\site-packages\hdrezka\post\urls\urls.py", line 17, in urls_from_ajax_response
return URLs(VideoURLs(response.get('url', '')),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Development\Python\Projects\rezkaMovie\.venv311\Lib\site-packages\hdrezka\post\urls\kind\video.py", line 43, in __init__
raise TypeError(f'got {data!r} (type {type(data)}) but expected type {str | dict}')
TypeError: got False (type <class 'bool'>) but expected type str | dict i switched to python 3.11 |
The latest theory was that |
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/root/anipj/main.py", line 52, in main
stream = await ani.get_stream(g, h, translats[b-1][1])
File "/usr/local/lib/python3.10/dist-packages/hdrezka/stream/player.py", line 77, in get_stream
return urls_from_ajax_response(
File "/usr/local/lib/python3.10/dist-packages/hdrezka/post/urls/urls.py", line 12, in urls_from_ajax_response
return URLs(VideoURLs(response.get('url', '')),
File "/usr/local/lib/python3.10/dist-packages/hdrezka/post/urls/kind/video.py", line 24, in init
self.qualities: tuple[Quality] = *sorted(self.raw_data),
TypeError: 'bool' object is not iterable
on windows its working well, but when im trying on my vps its throwing this error
The text was updated successfully, but these errors were encountered: