TypeError: string indices must be integers, not 'str'
Describe the bug
input not existed user, error msg is unreasonable
client.run()
File "/tk/.venv/lib/python3.11/site-packages/TikTokLive/client/client.py", line 200, in run
return self._asyncio_loop.run_until_complete(self.connect(**kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/tk/.venv/lib/python3.11/site-packages/TikTokLive/client/client.py", line 176, in connect
task: Task = await self.start(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tk/.venv/lib/python3.11/site-packages/TikTokLive/client/client.py", line 127, in start
if fetch_live_check and not await self._web.fetch_is_live(room_id=self._room_id):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tk/.venv/lib/python3.11/site-packages/TikTokLive/client/web/routes/fetch_is_live.py", line 47, in call
return (await self.fetch_is_live_room_ids(room_id))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tk/.venv/lib/python3.11/site-packages/TikTokLive/client/web/routes/fetch_is_live.py", line 66, in fetch_is_live_room_ids
return [i["alive"] for i in response_json["data"]]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tk/.venv/lib/python3.11/site-packages/TikTokLive/client/web/routes/fetch_is_live.py", line 66, in
Package Version v6.0.4
Any solution for it?
If you are being blocked, it might be time to consider a web_proxy. If this is an issue with the endpoint, copy it and debug. Submit a PR!
Thanks
Same problem. Is there a solution? I'm a little confused about the answer above
update to latest version and reopen if still occuring