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

raise mapped_exc(message) from exc httpx.ReadTimeout #220

Open
1 of 4 tasks
mohamedalmograby opened this issue May 7, 2024 · 0 comments
Open
1 of 4 tasks

raise mapped_exc(message) from exc httpx.ReadTimeout #220

mohamedalmograby opened this issue May 7, 2024 · 0 comments
Assignees

Comments

@mohamedalmograby
Copy link

mohamedalmograby commented May 7, 2024

Describe the bug

Hello @isaackogan
When i'm working with simple connect script that logs the events , it throw httpx.ReadTimeout

Expected Behaviour

to connect and log the event correctly

Actual Behaviour

it throw error

File "/home/mohamed/.local/lib/python3.10/site-packages/TikTokLive/client/client.py", line 200, in run
    return self._asyncio_loop.run_until_complete(self.connect(**kwargs))
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/mohamed/.local/lib/python3.10/site-packages/TikTokLive/client/client.py", line 176, in connect
    task: Task = await self.start(**kwargs)
  File "/home/mohamed/.local/lib/python3.10/site-packages/TikTokLive/client/client.py", line 139, in start
    webcast_response: WebcastResponse = await self._web.fetch_sign_fetch()
  File "/home/mohamed/.local/lib/python3.10/site-packages/TikTokLive/client/web/routes/fetch_sign.py", line 114, in __call__
    response: Response = await self._web.get_response(
  File "/home/mohamed/.local/lib/python3.10/site-packages/TikTokLive/client/web/web_base.py", line 102, in get_response
    return await (client or self._httpx).get(
  File "/home/mohamed/.local/lib/python3.10/site-packages/httpx/_client.py", line 1801, in get
    return await self.request(
  File "/home/mohamed/.local/lib/python3.10/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/mohamed/.local/lib/python3.10/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/mohamed/.local/lib/python3.10/site-packages/httpx/_client.py", line 1689, in _send_handling_auth
    response = await self._send_handling_redirects(
  File "/home/mohamed/.local/lib/python3.10/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects
    response = await self._send_single_request(request)
  File "/home/mohamed/.local/lib/python3.10/site-packages/httpx/_client.py", line 1763, in _send_single_request
    response = await transport.handle_async_request(request)
  File "/home/mohamed/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 372, in handle_async_request
    with map_httpcore_exceptions():
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/home/mohamed/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
    raise mapped_exc(message) from exc
httpx.ReadTimeout

Package Version

6.0.5

Operating System

  • Windows
  • Linux
  • MacOS
  • Other (Specifically, ...)

Anything Else

If there's anything else, add it here.

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

No branches or pull requests

2 participants