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

feeder mini 404 #22

Closed
3 tasks done
mistorincognito opened this issue Jan 11, 2025 · 1 comment
Closed
3 tasks done

feeder mini 404 #22

mistorincognito opened this issue Jan 11, 2025 · 1 comment
Assignees
Labels
Bug Something isn't working

Comments

@mistorincognito
Copy link

mistorincognito commented Jan 11, 2025

Integration version ?

1.5

In which region is your Petkit application registered?

France

Device type

Feeder

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

manual feeding not working

Reproduction steps

  1. set manual feed to 10
  2. 404 error

...

Debug logs

2025-01-11 14:10:02.823 DEBUG (MainThread) [custom_components.petkit] Setting value for : Manual feed single with value : 10
2025-01-11 14:10:02.871 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140308003996000] Unexpected exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/pypetkitapi/client.py", line 794, in _handle_response
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1161, in raise_for_status
    raise ClientResponseError(
    ...<5 lines>...
    )
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url='https://api.eu-pet.com/latest/feedermini/feedermini/save_dailyfeed'

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
        hass, entity, func, data, call.context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/text/__init__.py", line 81, in _async_set_value
    await entity.async_set_value(value)
  File "/config/custom_components/petkit/text.py", line 202, in async_set_value
    await self.entity_description.action(
        self.coordinator.config_entry.runtime_data.client, self.device, value
    )
  File "/usr/local/lib/python3.13/site-packages/pypetkitapi/client.py", line 722, in send_api_request
    res = await self.req.request(
          ^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/pypetkitapi/client.py", line 786, in request
    return await self._handle_response(resp, _url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pypetkitapi/client.py", line 796, in _handle_response
    raise PetkitInvalidHTTPResponseCodeError(
        f"Request failed with status code {e.status}"
    ) from e
pypetkitapi.exceptions.PetkitInvalidHTTPResponseCodeError: Request failed with status code 404
2025-01-11 14:10:26.927 DEBUG (MainThread) [custom_components.petkit] Finished fetching petkit data in 0.282 seconds (success: True)

Diagnostics dump

No response

@mistorincognito mistorincognito added the Bug Something isn't working label Jan 11, 2025
@Jezza34000
Copy link
Owner

This issue is fixed in this version
https://github.com/Jezza34000/homeassistant_petkit/releases/tag/1.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants