#mealie integration action import recipe Object not found in Mealie

12 messages · Page 1 of 1 (latest)

tranquil matrix
#

Im playing with mealie. Im trying to import a recipe with the api.

action: mealie.import_recipe
data:
  config_entry_id: 01JGBK8K1QJ1429FFF4J785F99
  url: https://www.nasqbbq.nl/carpaccio-rollade-van-bavette/

but it gives an unknown error.

#

logs state.

aiomealie.exceptions.MealieNotFoundError: ('Object not found in Mealie', {'response': '{"detail":{"message":"No Entry Found","error":true,"exception":null}}'})
2024-12-30 14:40:46.346 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: ('Object not found in Mealie', {'response': '{"detail":{"message":"No Entry Found","error":true,"exception":null}}'})
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(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<9 lines>...
    )
    ^
  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 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/components/mealie/services.py", line 168, in async_import_recipe
recipe = await client.import_recipe(url, include_tags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiomealie/mealie.py", line 221, in import_recipe
return await self.get_recipe(json.loads(response))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiomealie/mealie.py", line 214, in get_recipe
response = await self._get(f"api/recipes/{recipe_id_or_slug}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiomealie/mealie.py", line 137, in _get
return await self._request(METH_GET, uri, params=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiomealie/mealie.py", line 118, in _request
raise MealieNotFoundError(
...<2 lines>...
)

sacred halo
#

Lol apparently just when you talk about this, it got fixed

tranquil matrix
#

Great

#

Will it be in the next beta?

sacred halo
#

most likely yes

tranquil matrix
#

Oke microwave till then.

tranquil matrix
#

@sacred halo is it possible to search for recipies>

sacred halo
#

cant rememeber