Skip to content
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

🙋 Tiktok监听失败,报错:TikTokLive.types.errors.FailedFetchRoomInfo: Failed to fetch room id from Webcast, see stacktrace for more info. #675

Closed
Ikaros-521 opened this issue Mar 1, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Ikaros-521
Copy link
Owner

Question Report

请在提交问题之前回答这些问题,谢谢。 | Please answer these questions before submitting them. Thank you.

你使用了哪个版本? | Which version did you use?

main

您使用的python版本&系统环境? | Your usage python version & system?

python:3.10.11
系统:win11

预期行为 | Expected behavior

例如:正常运行

实际行为 | Actual behavior

Traceback (most recent call last):
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\asyncio\windows_events.py", line 494, in finish_recv
    return ov.getresult()
OSError: [WinError 64] 指定的网络名不再可用。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\asyncio\proactor_events.py", line 286, in _loop_reading
    length = fut.result()
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\asyncio\windows_events.py", line 826, in _poll
    value = callback(transferred, key, ov)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\asyncio\windows_events.py", line 498, in finish_recv
    raise ConnectionResetError(*exc.args)
ConnectionResetError: [WinError 64] 指定的网络名不再可用。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpcore\_exceptions.py", line 10, in map_exceptions
    yield
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpcore\_backends\anyio.py", line 78, in start_tls
    raise exc
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpcore\_backends\anyio.py", line 69, in start_tls
    ssl_stream = await anyio.streams.tls.TLSStream.wrap(
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\anyio\streams\tls.py", line 123, in wrap
    await wrapper._call_sslobject_method(ssl_object.do_handshake)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\anyio\streams\tls.py", line 138, in _call_sslobject_method
    data = await self.transport_stream.receive()
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\anyio\_backends\_asyncio.py", line 1212, in receive
    raise self._protocol.exception
anyio.BrokenResourceError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpx\_transports\default.py", line 66, in map_httpcore_exceptions
    yield
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpx\_transports\default.py", line 366, in handle_async_request
    resp = await self._pool.handle_async_request(req)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpcore\_async\connection_pool.py", line 268, in handle_async_request
    raise exc
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpcore\_async\connection_pool.py", line 251, in handle_async_request
    response = await connection.handle_async_request(request)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpcore\_async\connection.py", line 99, in handle_async_request
    raise exc
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpcore\_async\connection.py", line 76, in handle_async_request
    stream = await self._connect(request)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpcore\_async\connection.py", line 156, in _connect
    stream = await stream.start_tls(**kwargs)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpcore\_backends\anyio.py", line 66, in start_tls
    with map_exceptions(exc_map):
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpcore\_exceptions.py", line 14, in map_exceptions
    raise to_exc(exc) from exc
httpcore.ConnectError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\base.py", line 150, in _fetch_room_id
    html: str = await self.http.get_livestream_page_html(self.__unique_id)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\httpx.py", line 183, in get_livestream_page_html
    response: bytes = await self.__httpx_get_bytes(f"{config.TIKTOK_URL_WEB}@{unique_id}/live")
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\httpx.py", line 98, in __httpx_get_bytes
    response: httpx.Response = await client.get(url, headers=self.headers, timeout=self.timeout)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpx\_client.py", line 1757, in get
    return await self.request(
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpx\_client.py", line 1530, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpx\_client.py", line 1617, in send
    response = await self._send_handling_auth(
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\httpx\_client.py", line 1645, in _send_handling_auth
    response = await self._send_handling_redirects(
    return future.result()
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\base.py", line 352, in _start
    await self.start()
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\base.py", line 343, in start
    await self._connect()
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\base.py", line 283, in _connect
    await self._fetch_room_id()
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\base.py", line 155, in _fetch_room_id
    await self._on_error(ex, FailedFetchRoomInfo("Failed to fetch room id from Webcast, see stacktrace for more info."))
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\client.py", line 68, in _on_error
    raise _exc
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\client.py", line 62, in _on_error
    raise append from original
TikTokLive.types.errors.FailedFetchRoomInfo: Failed to fetch room id from Webcast, see stacktrace for more info.

原因分析(如果可以) | Cause analysis (if possible)

例如:JSON解析出错/网络问题等

问题重现步骤 | Steps to reproduce the problem

例如:贴上配置截图,描述下运行步骤等

@Ikaros-521 Ikaros-521 added the question Further information is requested label Mar 1, 2024
@Ikaros-521 Ikaros-521 changed the title 🙋 Tiktok监听失败 🙋 Tiktok监听失败,报错:TikTokLive.types.errors.FailedFetchRoomInfo: Failed to fetch room id from Webcast, see stacktrace for more info. Mar 1, 2024
@Ikaros-521
Copy link
Owner Author

Ikaros-521 commented Mar 1, 2024

开启魔法,启动TUN模式,如果开了还是这个报错,请更换节点
推荐v2 vless协议

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant