Skip to content

Read timeout #104

Description

@jahyouth503

Having this issue:

Traceback (most recent call last):
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
yield
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request
raise exc from None
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pool_request.request
^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpcore/_async/connection.py", line 103, in handle_async_request
return await self._connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpcore/_async/http11.py", line 136, in handle_async_request
raise exc
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpcore/_async/http11.py", line 106, in handle_async_request
) = await self._receive_response_headers(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpcore/_async/http11.py", line 177, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpcore/_async/http11.py", line 217, in _receive_event
data = await self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self.READ_NUM_BYTES, timeout=timeout
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 32, in read
with map_exceptions(exc_map):
~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.14/3.14.5/Frameworks/Python.framework/Versions/3.14/lib/python3.14/contextlib.py", line 162, in exit
self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout

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

Traceback (most recent call last):
File "/Users/trevorrichen/.local/bin/votify", line 6, in
sys.exit(main())
~~~~^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/click/core.py", line 1485, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/click/core.py", line 1406, in main
rv = self.invoke(ctx)
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/click/core.py", line 1269, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/click/core.py", line 824, in invoke
return callback(*args, **kwargs)
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/dataclass_click/dataclass_click.py", line 137, in wrapper
return func(*args, **kwargs)
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/votify/cli/config_file.py", line 165, in wrapper
return func(cli_config)
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/votify/cli/cli.py", line 43, in wrapper
return asyncio.run(func(*args, **kwargs))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.14/3.14.5/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/runners.py", line 204, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "/opt/homebrew/Cellar/python@3.14/3.14.5/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/runners.py", line 127, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/opt/homebrew/Cellar/python@3.14/3.14.5/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/base_events.py", line 719, in run_until_complete
return future.result()
~~~~~~~~~~~~~^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/votify/cli/cli.py", line 97, in main
api = await SpotifyApi.create_from_netscape_cookies(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
)
^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/votify/api/api.py", line 97, in create_from_netscape_cookies
return await cls.create(
^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/votify/api/api.py", line 111, in create
await api._initialize()
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/votify/api/api.py", line 117, in _initialize
await self._initialize_authorization()
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/votify/api/api.py", line 160, in _initialize_authorization
await self._initialize_authorization_with_totp()
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/votify/api/api.py", line 178, in _initialize_authorization_with_totp
self.totp = await Totp.initialize()
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/votify/api/totp.py", line 27, in initialize
response = await client.get(TOTP_SECRETS_URL)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpx/_client.py", line 1768, in get
return await self.request(
^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpx/_client.py", line 1540, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
)
^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request
with map_httpcore_exceptions():
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/python@3.14/3.14.5/Frameworks/Python.framework/Versions/3.14/lib/python3.14/contextlib.py", line 162, in exit
self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/Users/trevorrichen/.local/pipx/venvs/votify/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions