You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since updating qBittorrent to version 5, the integration stopped working. Version 5 brought some changes to the WebAPI:
/api/v2/torrents/pause has changed to /api/v2/torrents/stop /api/v2/torrents/resume changed to /api/v2/torrents/start
I don't know much about coding, so I couldn't figure out how to update those calls. Could you please take a look at this?
Error message:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aioqbt/client.py", line 255, in request
raise aiohttp.ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url='http://192.168.25.20:8080/api/v2/torrents/pause'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 132, in _async_press_action
await self.async_press()
File "/config/custom_components/qbittorrent_alt/button.py", line 71, in async_press
await self.entity_description.press_fn(self.coordinator)
File "/usr/local/lib/python3.12/site-packages/aioqbt/api/torrents.py", line 209, in pause
await self._request_text(
File "/usr/local/lib/python3.12/site-packages/aioqbt/client.py", line 518, in _request_text
return await self._client().request_text(method, endpoint, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aioqbt/client.py", line 363, in request_text
resp = await self.request(method, endpoint, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aioqbt/client.py", line 284, in request
self._handle_error(last_exc, resp, resp_body)
File "/usr/local/lib/python3.12/site-packages/aioqbt/client.py", line 351, in _handle_error
raise exc_class.from_response(resp, message) from error
aioqbt.exc.NotFoundError: NotFoundError(status=404, message='Not Found')
The text was updated successfully, but these errors were encountered:
Since updating qBittorrent to version 5, the integration stopped working. Version 5 brought some changes to the WebAPI:
/api/v2/torrents/pause
has changed to/api/v2/torrents/stop
/api/v2/torrents/resume
changed to/api/v2/torrents/start
I don't know much about coding, so I couldn't figure out how to update those calls. Could you please take a look at this?
Error message:
The text was updated successfully, but these errors were encountered: