mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
7.33k stars 732 forks source link

[SCRAPER] - Can't import receipts, debugger shows content just fine #4184

Closed M4rFri closed 2 months ago

M4rFri commented 2 months ago

First Check

Please provide 1-5 example URLs that are having errors

https://www.chefkoch.de/rezepte/432571134435843/Bester-bunter-Nudelauflauf-mit-Mais-und-Paprika.html

Please provide your logs for the Mealie container docker logs <container-id> > mealie.logs


Sep 09 20:45:59 Mealie run.sh[1516]: INFO     2024-09-09T20:45:59 - HTTP Request: GET https://www.bettybossi.ch/de/Rezept/ShowRezept/BB_BRUN110415_0008A-80-de "HTTP/1.1 200 OK"
Sep 09 20:45:59 Mealie run.sh[1516]: INFO     2024-09-09T20:45:59 - [10.100.0.101:0] 400 Bad Request "POST /api/recipes/create-url HTTP/1.1"
Sep 09 20:46:14 Mealie run.sh[1516]: INFO     2024-09-09T20:46:14 - [10.100.0.101:0] 200 OK "GET /api/organizers/tags?page=1&perPage=-1&orderBy=name&orderDirection=asc HTTP/1.1"
Sep 09 20:46:14 Mealie run.sh[1516]: INFO     2024-09-09T20:46:14 - [10.100.0.101:0] 200 OK "GET /api/organizers/categories?page=1&perPage=-1&orderBy=name&orderDirection=asc HTTP/1.1"
Sep 09 20:46:14 Mealie run.sh[1516]: INFO     2024-09-09T20:46:14 - [10.100.0.101:0] 200 OK "GET /api/organizers/tools?page=1&perPage=-1&orderBy=name&orderDirection=asc HTTP/1.1"
Sep 09 20:46:14 Mealie run.sh[1516]: INFO     2024-09-09T20:46:14 - [10.100.0.101:0] 200 OK "GET /api/recipes?page=1&perPage=64&orderBy=created_at&orderDirection=desc&paginationSeed=1725907574393&searchSeed=1725907574393&search=&requireAllCategories=false&requireAllTags=false&requireAllTools=false&requireAllFoods=false HTTP/1.1"
Sep 09 20:46:15 Mealie run.sh[1516]: INFO     2024-09-09T20:46:15 - [10.100.0.101:0] 200 OK "GET /_nuxt/2f0d123.js HTTP/1.1"
Sep 09 20:46:15 Mealie run.sh[1516]: INFO     2024-09-09T20:46:15 - [10.100.0.101:0] 200 OK "GET /_nuxt/bf8c16d.js HTTP/1.1"
Sep 09 20:46:15 Mealie run.sh[1516]: INFO     2024-09-09T20:46:15 - [10.100.0.101:0] 200 OK "GET /_nuxt/0c78630.js HTTP/1.1"
Sep 09 20:46:15 Mealie run.sh[1516]: INFO     2024-09-09T20:46:15 - [10.100.0.101:0] 200 OK "GET /api/groups/self HTTP/1.1"
Sep 09 20:46:15 Mealie run.sh[1516]: INFO     2024-09-09T20:46:15 - [10.100.0.101:0] 200 OK "GET /api/groups/mealplans?page=1&perPage=-1&start_date=2024-09-09&end_date=2024-09-15 HTTP/1.1"
Sep 09 20:46:16 Mealie run.sh[1516]: INFO     2024-09-09T20:46:16 - [10.100.0.101:0] 200 OK "GET /_nuxt/5efda5d.js HTTP/1.1"
Sep 09 20:46:16 Mealie run.sh[1516]: INFO     2024-09-09T20:46:16 - [10.100.0.101:0] 200 OK "GET /api/groups/shopping/lists?page=1&perPage=-1&orderBy=name&orderDirection=asc HTTP/1.1"
Sep 09 20:46:16 Mealie run.sh[1516]: INFO     2024-09-09T20:46:16 - [10.100.0.101:0] 200 OK "GET /_nuxt/img/shopping-cart.8fea7ef.svg HTTP/1.1"
Sep 09 20:46:18 Mealie run.sh[1516]: INFO     2024-09-09T20:46:18 - [10.100.0.101:0] 200 OK "GET /_nuxt/0ae8a21.js HTTP/1.1"
Sep 09 20:46:18 Mealie run.sh[1516]: INFO     2024-09-09T20:46:18 - [10.100.0.101:0] 200 OK "GET /_nuxt/4337a37.js HTTP/1.1"
Sep 09 20:46:18 Mealie run.sh[1516]: INFO     2024-09-09T20:46:18 - [10.100.0.101:0] 200 OK "GET /_nuxt/b7a35a2.js HTTP/1.1"
Sep 09 20:46:18 Mealie run.sh[1516]: INFO     2024-09-09T20:46:18 - [10.100.0.101:0] 200 OK "GET /api/groups/self HTTP/1.1"
Sep 09 20:46:18 Mealie run.sh[1516]: INFO     2024-09-09T20:46:18 - [10.100.0.101:0] 200 OK "GET /api/recipes/timeline/events?page=1&perPage=32&orderBy=timestamp&orderDirection=asc&queryFilter=(recipe.group_id%3D%22f85c65f9-dc7c-46c6-a22b-cae5d78a34f3%22)+AND+eventType+IN+[%22info%22,+%22system%22,+%22comment%22] HTTP/1.1"
Sep 09 20:46:20 Mealie run.sh[1516]: INFO     2024-09-09T20:46:20 - [10.100.0.101:0] 200 OK "GET /api/organizers/tags?page=1&perPage=-1&orderBy=name&orderDirection=asc HTTP/1.1"
Sep 09 20:46:20 Mealie run.sh[1516]: INFO     2024-09-09T20:46:20 - [10.100.0.101:0] 200 OK "GET /api/app/about HTTP/1.1"
Sep 09 20:46:27 Mealie run.sh[1516]: INFO     2024-09-09T20:46:27 - [10.100.0.101:0] 200 OK "GET /_nuxt/efe3507.js HTTP/1.1"
Sep 09 20:46:27 Mealie run.sh[1516]: INFO     2024-09-09T20:46:27 - [10.100.0.101:0] 200 OK "GET /api/app/about HTTP/1.1"
Sep 09 20:46:32 Mealie run.sh[1516]: INFO     2024-09-09T20:46:32 - HTTP Request: GET https://www.chefkoch.de/rezepte/432571134435843/Bester-bunter-Nudelauflauf-mit-Mais-und-Paprika.html "HTTP/1.1 200 OK"
Sep 09 20:46:33 Mealie run.sh[1516]: INFO     2024-09-09T20:46:33 - [10.100.0.101:0] 200 OK "POST /api/recipes/test-scrape-url HTTP/1.1"
Sep 09 20:46:33 Mealie run.sh[1516]: INFO     2024-09-09T20:46:33 - [10.100.0.101:0] 200 OK "GET /_nuxt/6787706.js HTTP/1.1"
Sep 09 20:46:33 Mealie run.sh[1516]: INFO     2024-09-09T20:46:33 - [10.100.0.101:0] 200 OK "GET /_nuxt/c1007d3.js HTTP/1.1"
Sep 09 20:46:51 Mealie run.sh[1516]: INFO     2024-09-09T20:46:51 - [10.100.0.101:0] 200 OK "GET /api/organizers/tags?page=1&perPage=-1&orderBy=name&orderDirection=asc HTTP/1.1"
Sep 09 20:46:51 Mealie run.sh[1516]: INFO     2024-09-09T20:46:51 - HTTP Request: GET https://www.chefkoch.de/rezepte/432571134435843/Bester-bunter-Nudelauflauf-mit-Mais-und-Paprika.html "HTTP/1.1 200 OK"
Sep 09 20:46:51 Mealie run.sh[1516]: INFO     2024-09-09T20:46:51 - Image URL: ['https://img.chefkoch-cdn.de/rezepte/432571134435843/bilder/692137/crop-960x540/bester-bunter-nudelauflauf-mit-mais-und-paprika.jpg']
Sep 09 20:46:51 Mealie run.sh[1516]: INFO     2024-09-09T20:46:51 - HTTP Request: HEAD https://img.chefkoch-cdn.de/rezepte/432571134435843/bilder/692137/crop-960x540/bester-bunter-nudelauflauf-mit-mais-und-paprika.jpg "HTTP/1.1 200 OK"
Sep 09 20:46:51 Mealie run.sh[1516]: INFO     2024-09-09T20:46:51 - HTTP Request: GET https://img.chefkoch-cdn.de/rezepte/432571134435843/bilder/692137/crop-960x540/bester-bunter-nudelauflauf-mit-mais-und-paprika.jpg "HTTP/1.1 200 OK"
Sep 09 20:46:51 Mealie run.sh[1516]: INFO     2024-09-09T20:46:51 - original.jpg minified
Sep 09 20:46:51 Mealie run.sh[1516]: INFO     2024-09-09T20:46:51 - Tiny image saved
Sep 09 20:46:51 Mealie run.sh[1516]: INFO     2024-09-09T20:46:51 - [10.100.0.101:0] 500 Internal Server Error "POST /api/recipes/create-url HTTP/1.1"
Sep 09 20:46:51 Mealie run.sh[1516]: ERROR    2024-09-09T20:46:51 - Exception in ASGI application
Sep 09 20:46:51 Mealie run.sh[1516]: Traceback (most recent call last):
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
Sep 09 20:46:51 Mealie run.sh[1516]:     result = await app(  # type: ignore[func-returns-value]
Sep 09 20:46:51 Mealie run.sh[1516]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     return await self.app(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await super().__call__(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await self.middleware_stack(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await self.app(scope, receive, _send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 24, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await responder(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 44, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await self.app(scope, receive, self.send_with_gzip)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
Sep 09 20:46:51 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Sep 09 20:46:51 Mealie run.sh[1516]:     await app(scope, receive, sender)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await self.middleware_stack(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
Sep 09 20:46:51 Mealie run.sh[1516]:     await route.handle(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
Sep 09 20:46:51 Mealie run.sh[1516]:     await self.app(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
Sep 09 20:46:51 Mealie run.sh[1516]:     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
Sep 09 20:46:51 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Sep 09 20:46:51 Mealie run.sh[1516]:     await app(scope, receive, sender)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
Sep 09 20:46:51 Mealie run.sh[1516]:     response = await func(request)
Sep 09 20:46:51 Mealie run.sh[1516]:                ^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/app/mealie/routes/_base/routers.py", line 35, in custom_route_handler
Sep 09 20:46:51 Mealie run.sh[1516]:     response = await original_route_handler(request)
Sep 09 20:46:51 Mealie run.sh[1516]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
Sep 09 20:46:51 Mealie run.sh[1516]:     raw_response = await run_endpoint_function(
Sep 09 20:46:51 Mealie run.sh[1516]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
Sep 09 20:46:51 Mealie run.sh[1516]:     return await dependant.call(**values)
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/app/mealie/routes/recipe/recipe_crud_routes.py", line 214, in parse_recipe_url
Sep 09 20:46:51 Mealie run.sh[1516]:     new_recipe = self.service.create_one(recipe)
Sep 09 20:46:51 Mealie run.sh[1516]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/app/mealie/services/recipe/recipe_service.py", line 149, in create_one
Sep 09 20:46:51 Mealie run.sh[1516]:     new_recipe = self.repos.recipes.create(data)
Sep 09 20:46:51 Mealie run.sh[1516]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/app/mealie/repos/repository_recipes.py", line 47, in create
Sep 09 20:46:51 Mealie run.sh[1516]:     return super().create(document)
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/app/mealie/repos/repository_generic.py", line 154, in create
Sep 09 20:46:51 Mealie run.sh[1516]:     self.session.commit()
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2028, in commit
Sep 09 20:46:51 Mealie run.sh[1516]:     trans.commit(_to_root=True)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "<string>", line 2, in commit
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
Sep 09 20:46:51 Mealie run.sh[1516]:     ret_value = fn(self, *arg, **kw)
Sep 09 20:46:51 Mealie run.sh[1516]:                 ^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 1313, in commit
Sep 09 20:46:51 Mealie run.sh[1516]:     self._prepare_impl()
Sep 09 20:46:51 Mealie run.sh[1516]:   File "<string>", line 2, in _prepare_impl
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
Sep 09 20:46:51 Mealie run.sh[1516]:     ret_value = fn(self, *arg, **kw)
Sep 09 20:46:51 Mealie run.sh[1516]:                 ^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 1288, in _prepare_impl
Sep 09 20:46:51 Mealie run.sh[1516]:     self.session.flush()
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4352, in flush
Sep 09 20:46:51 Mealie run.sh[1516]:     self._flush(objects)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4487, in _flush
Sep 09 20:46:51 Mealie run.sh[1516]:     with util.safe_reraise():
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
Sep 09 20:46:51 Mealie run.sh[1516]:     raise exc_value.with_traceback(exc_tb)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4448, in _flush
Sep 09 20:46:51 Mealie run.sh[1516]:     flush_context.execute()
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/unitofwork.py", line 466, in execute
Sep 09 20:46:51 Mealie run.sh[1516]:     rec.execute(self)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/unitofwork.py", line 642, in execute
Sep 09 20:46:51 Mealie run.sh[1516]:     util.preloaded.orm_persistence.save_obj(
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/persistence.py", line 93, in save_obj
Sep 09 20:46:51 Mealie run.sh[1516]:     _emit_insert_statements(
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/persistence.py", line 1048, in _emit_insert_statements
Sep 09 20:46:51 Mealie run.sh[1516]:     result = connection.execute(
Sep 09 20:46:51 Mealie run.sh[1516]:              ^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1418, in execute
Sep 09 20:46:51 Mealie run.sh[1516]:     return meth(
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection
Sep 09 20:46:51 Mealie run.sh[1516]:     return connection._execute_clauseelement(
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement
Sep 09 20:46:51 Mealie run.sh[1516]:     ret = self._execute_context(
Sep 09 20:46:51 Mealie run.sh[1516]:           ^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
Sep 09 20:46:51 Mealie run.sh[1516]:     return self._exec_single_context(
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context
Sep 09 20:46:51 Mealie run.sh[1516]:     self._handle_dbapi_exception(
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2358, in _handle_dbapi_exception
Sep 09 20:46:51 Mealie run.sh[1516]:     raise exc_info[1].with_traceback(exc_info[2])
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
Sep 09 20:46:51 Mealie run.sh[1516]:     self.dialect.do_execute(
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute
Sep 09 20:46:51 Mealie run.sh[1516]:     cursor.execute(statement, parameters)
Sep 09 20:46:51 Mealie run.sh[1516]: UnicodeEncodeError: 'ascii' codec can't encode character '\xdc' in position 49: ordinal not in range(128)
Sep 09 20:46:51 Mealie run.sh[1516]: ERROR    2024-09-09T20:46:51 - Exception in ASGI application
Sep 09 20:46:51 Mealie run.sh[1516]: Traceback (most recent call last):
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
Sep 09 20:46:51 Mealie run.sh[1516]:     result = await app(  # type: ignore[func-returns-value]
Sep 09 20:46:51 Mealie run.sh[1516]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     return await self.app(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await super().__call__(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await self.middleware_stack(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await self.app(scope, receive, _send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 24, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await responder(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 44, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await self.app(scope, receive, self.send_with_gzip)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
Sep 09 20:46:51 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Sep 09 20:46:51 Mealie run.sh[1516]:     await app(scope, receive, sender)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
Sep 09 20:46:51 Mealie run.sh[1516]:     await self.middleware_stack(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
Sep 09 20:46:51 Mealie run.sh[1516]:     await route.handle(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
Sep 09 20:46:51 Mealie run.sh[1516]:     await self.app(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
Sep 09 20:46:51 Mealie run.sh[1516]:     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
Sep 09 20:46:51 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Sep 09 20:46:51 Mealie run.sh[1516]:     await app(scope, receive, sender)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
Sep 09 20:46:51 Mealie run.sh[1516]:     response = await func(request)
Sep 09 20:46:51 Mealie run.sh[1516]:                ^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/app/mealie/routes/_base/routers.py", line 35, in custom_route_handler
Sep 09 20:46:51 Mealie run.sh[1516]:     response = await original_route_handler(request)
Sep 09 20:46:51 Mealie run.sh[1516]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
Sep 09 20:46:51 Mealie run.sh[1516]:     raw_response = await run_endpoint_function(
Sep 09 20:46:51 Mealie run.sh[1516]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
Sep 09 20:46:51 Mealie run.sh[1516]:     return await dependant.call(**values)
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/app/mealie/routes/recipe/recipe_crud_routes.py", line 214, in parse_recipe_url
Sep 09 20:46:51 Mealie run.sh[1516]:     new_recipe = self.service.create_one(recipe)
Sep 09 20:46:51 Mealie run.sh[1516]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/app/mealie/services/recipe/recipe_service.py", line 149, in create_one
Sep 09 20:46:51 Mealie run.sh[1516]:     new_recipe = self.repos.recipes.create(data)
Sep 09 20:46:51 Mealie run.sh[1516]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/app/mealie/repos/repository_recipes.py", line 47, in create
Sep 09 20:46:51 Mealie run.sh[1516]:     return super().create(document)
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/app/mealie/repos/repository_generic.py", line 154, in create
Sep 09 20:46:51 Mealie run.sh[1516]:     self.session.commit()
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2028, in commit
Sep 09 20:46:51 Mealie run.sh[1516]:     trans.commit(_to_root=True)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "<string>", line 2, in commit
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
Sep 09 20:46:51 Mealie run.sh[1516]:     ret_value = fn(self, *arg, **kw)
Sep 09 20:46:51 Mealie run.sh[1516]:                 ^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 1313, in commit
Sep 09 20:46:51 Mealie run.sh[1516]:     self._prepare_impl()
Sep 09 20:46:51 Mealie run.sh[1516]:   File "<string>", line 2, in _prepare_impl
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
Sep 09 20:46:51 Mealie run.sh[1516]:     ret_value = fn(self, *arg, **kw)
Sep 09 20:46:51 Mealie run.sh[1516]:                 ^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 1288, in _prepare_impl
Sep 09 20:46:51 Mealie run.sh[1516]:     self.session.flush()
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4352, in flush
Sep 09 20:46:51 Mealie run.sh[1516]:     self._flush(objects)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4487, in _flush
Sep 09 20:46:51 Mealie run.sh[1516]:     with util.safe_reraise():
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
Sep 09 20:46:51 Mealie run.sh[1516]:     raise exc_value.with_traceback(exc_tb)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4448, in _flush
Sep 09 20:46:51 Mealie run.sh[1516]:     flush_context.execute()
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/unitofwork.py", line 466, in execute
Sep 09 20:46:51 Mealie run.sh[1516]:     rec.execute(self)
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/unitofwork.py", line 642, in execute
Sep 09 20:46:51 Mealie run.sh[1516]:     util.preloaded.orm_persistence.save_obj(
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/persistence.py", line 93, in save_obj
Sep 09 20:46:51 Mealie run.sh[1516]:     _emit_insert_statements(
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/persistence.py", line 1048, in _emit_insert_statements
Sep 09 20:46:51 Mealie run.sh[1516]:     result = connection.execute(
Sep 09 20:46:51 Mealie run.sh[1516]:              ^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1418, in execute
Sep 09 20:46:51 Mealie run.sh[1516]:     return meth(
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection
Sep 09 20:46:51 Mealie run.sh[1516]:     return connection._execute_clauseelement(
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement
Sep 09 20:46:51 Mealie run.sh[1516]:     ret = self._execute_context(
Sep 09 20:46:51 Mealie run.sh[1516]:           ^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
Sep 09 20:46:51 Mealie run.sh[1516]:     return self._exec_single_context(
Sep 09 20:46:51 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context
Sep 09 20:46:51 Mealie run.sh[1516]:     self._handle_dbapi_exception(
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2358, in _handle_dbapi_exception
Sep 09 20:46:51 Mealie run.sh[1516]:     raise exc_info[1].with_traceback(exc_info[2])
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
Sep 09 20:46:51 Mealie run.sh[1516]:     self.dialect.do_execute(
Sep 09 20:46:51 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute
Sep 09 20:46:51 Mealie run.sh[1516]:     cursor.execute(statement, parameters)
Sep 09 20:46:51 Mealie run.sh[1516]: UnicodeEncodeError: 'ascii' codec can't encode character '\xdc' in position 49: ordinal not in range(128)
Sep 09 20:46:53 Mealie run.sh[1516]: INFO     2024-09-09T20:46:53 - HTTP Request: GET https://www.chefkoch.de/rezepte/432571134435843/Bester-bunter-Nudelauflauf-mit-Mais-und-Paprika.html "HTTP/1.1 200 OK"
Sep 09 20:46:53 Mealie run.sh[1516]: INFO     2024-09-09T20:46:53 - Image URL: ['https://img.chefkoch-cdn.de/rezepte/432571134435843/bilder/692137/crop-960x540/bester-bunter-nudelauflauf-mit-mais-und-paprika.jpg']
Sep 09 20:46:53 Mealie run.sh[1516]: INFO     2024-09-09T20:46:53 - HTTP Request: HEAD https://img.chefkoch-cdn.de/rezepte/432571134435843/bilder/692137/crop-960x540/bester-bunter-nudelauflauf-mit-mais-und-paprika.jpg "HTTP/1.1 200 OK"
Sep 09 20:46:53 Mealie run.sh[1516]: INFO     2024-09-09T20:46:53 - HTTP Request: GET https://img.chefkoch-cdn.de/rezepte/432571134435843/bilder/692137/crop-960x540/bester-bunter-nudelauflauf-mit-mais-und-paprika.jpg "HTTP/1.1 200 OK"
Sep 09 20:46:53 Mealie run.sh[1516]: INFO     2024-09-09T20:46:53 - original.jpg minified
Sep 09 20:46:53 Mealie run.sh[1516]: INFO     2024-09-09T20:46:53 - Tiny image saved
Sep 09 20:46:53 Mealie run.sh[1516]: INFO     2024-09-09T20:46:53 - [10.100.0.101:0] 500 Internal Server Error "POST /api/recipes/create-url HTTP/1.1"
Sep 09 20:46:53 Mealie run.sh[1516]: ERROR    2024-09-09T20:46:53 - Exception in ASGI application
Sep 09 20:46:53 Mealie run.sh[1516]: Traceback (most recent call last):
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
Sep 09 20:46:53 Mealie run.sh[1516]:     result = await app(  # type: ignore[func-returns-value]
Sep 09 20:46:53 Mealie run.sh[1516]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     return await self.app(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await super().__call__(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await self.middleware_stack(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await self.app(scope, receive, _send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 24, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await responder(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 44, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await self.app(scope, receive, self.send_with_gzip)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
Sep 09 20:46:53 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Sep 09 20:46:53 Mealie run.sh[1516]:     await app(scope, receive, sender)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await self.middleware_stack(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
Sep 09 20:46:53 Mealie run.sh[1516]:     await route.handle(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
Sep 09 20:46:53 Mealie run.sh[1516]:     await self.app(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
Sep 09 20:46:53 Mealie run.sh[1516]:     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
Sep 09 20:46:53 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Sep 09 20:46:53 Mealie run.sh[1516]:     await app(scope, receive, sender)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
Sep 09 20:46:53 Mealie run.sh[1516]:     response = await func(request)
Sep 09 20:46:53 Mealie run.sh[1516]:                ^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/app/mealie/routes/_base/routers.py", line 35, in custom_route_handler
Sep 09 20:46:53 Mealie run.sh[1516]:     response = await original_route_handler(request)
Sep 09 20:46:53 Mealie run.sh[1516]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
Sep 09 20:46:53 Mealie run.sh[1516]:     raw_response = await run_endpoint_function(
Sep 09 20:46:53 Mealie run.sh[1516]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
Sep 09 20:46:53 Mealie run.sh[1516]:     return await dependant.call(**values)
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/app/mealie/routes/recipe/recipe_crud_routes.py", line 214, in parse_recipe_url
Sep 09 20:46:53 Mealie run.sh[1516]:     new_recipe = self.service.create_one(recipe)
Sep 09 20:46:53 Mealie run.sh[1516]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/app/mealie/services/recipe/recipe_service.py", line 149, in create_one
Sep 09 20:46:53 Mealie run.sh[1516]:     new_recipe = self.repos.recipes.create(data)
Sep 09 20:46:53 Mealie run.sh[1516]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/app/mealie/repos/repository_recipes.py", line 47, in create
Sep 09 20:46:53 Mealie run.sh[1516]:     return super().create(document)
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/app/mealie/repos/repository_generic.py", line 154, in create
Sep 09 20:46:53 Mealie run.sh[1516]:     self.session.commit()
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2028, in commit
Sep 09 20:46:53 Mealie run.sh[1516]:     trans.commit(_to_root=True)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "<string>", line 2, in commit
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
Sep 09 20:46:53 Mealie run.sh[1516]:     ret_value = fn(self, *arg, **kw)
Sep 09 20:46:53 Mealie run.sh[1516]:                 ^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 1313, in commit
Sep 09 20:46:53 Mealie run.sh[1516]:     self._prepare_impl()
Sep 09 20:46:53 Mealie run.sh[1516]:   File "<string>", line 2, in _prepare_impl
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
Sep 09 20:46:53 Mealie run.sh[1516]:     ret_value = fn(self, *arg, **kw)
Sep 09 20:46:53 Mealie run.sh[1516]:                 ^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 1288, in _prepare_impl
Sep 09 20:46:53 Mealie run.sh[1516]:     self.session.flush()
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4352, in flush
Sep 09 20:46:53 Mealie run.sh[1516]:     self._flush(objects)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4487, in _flush
Sep 09 20:46:53 Mealie run.sh[1516]:     with util.safe_reraise():
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
Sep 09 20:46:53 Mealie run.sh[1516]:     raise exc_value.with_traceback(exc_tb)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4448, in _flush
Sep 09 20:46:53 Mealie run.sh[1516]:     flush_context.execute()
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/unitofwork.py", line 466, in execute
Sep 09 20:46:53 Mealie run.sh[1516]:     rec.execute(self)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/unitofwork.py", line 642, in execute
Sep 09 20:46:53 Mealie run.sh[1516]:     util.preloaded.orm_persistence.save_obj(
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/persistence.py", line 93, in save_obj
Sep 09 20:46:53 Mealie run.sh[1516]:     _emit_insert_statements(
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/persistence.py", line 1048, in _emit_insert_statements
Sep 09 20:46:53 Mealie run.sh[1516]:     result = connection.execute(
Sep 09 20:46:53 Mealie run.sh[1516]:              ^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1418, in execute
Sep 09 20:46:53 Mealie run.sh[1516]:     return meth(
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection
Sep 09 20:46:53 Mealie run.sh[1516]:     return connection._execute_clauseelement(
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement
Sep 09 20:46:53 Mealie run.sh[1516]:     ret = self._execute_context(
Sep 09 20:46:53 Mealie run.sh[1516]:           ^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
Sep 09 20:46:53 Mealie run.sh[1516]:     return self._exec_single_context(
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context
Sep 09 20:46:53 Mealie run.sh[1516]:     self._handle_dbapi_exception(
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2358, in _handle_dbapi_exception
Sep 09 20:46:53 Mealie run.sh[1516]:     raise exc_info[1].with_traceback(exc_info[2])
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
Sep 09 20:46:53 Mealie run.sh[1516]:     self.dialect.do_execute(
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute
Sep 09 20:46:53 Mealie run.sh[1516]:     cursor.execute(statement, parameters)
Sep 09 20:46:53 Mealie run.sh[1516]: UnicodeEncodeError: 'ascii' codec can't encode character '\xdc' in position 49: ordinal not in range(128)
Sep 09 20:46:53 Mealie run.sh[1516]: ERROR    2024-09-09T20:46:53 - Exception in ASGI application
Sep 09 20:46:53 Mealie run.sh[1516]: Traceback (most recent call last):
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
Sep 09 20:46:53 Mealie run.sh[1516]:     result = await app(  # type: ignore[func-returns-value]
Sep 09 20:46:53 Mealie run.sh[1516]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     return await self.app(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await super().__call__(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await self.middleware_stack(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await self.app(scope, receive, _send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 24, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await responder(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 44, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await self.app(scope, receive, self.send_with_gzip)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
Sep 09 20:46:53 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Sep 09 20:46:53 Mealie run.sh[1516]:     await app(scope, receive, sender)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
Sep 09 20:46:53 Mealie run.sh[1516]:     await self.middleware_stack(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
Sep 09 20:46:53 Mealie run.sh[1516]:     await route.handle(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
Sep 09 20:46:53 Mealie run.sh[1516]:     await self.app(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
Sep 09 20:46:53 Mealie run.sh[1516]:     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
Sep 09 20:46:53 Mealie run.sh[1516]:     raise exc
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
Sep 09 20:46:53 Mealie run.sh[1516]:     await app(scope, receive, sender)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
Sep 09 20:46:53 Mealie run.sh[1516]:     response = await func(request)
Sep 09 20:46:53 Mealie run.sh[1516]:                ^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/app/mealie/routes/_base/routers.py", line 35, in custom_route_handler
Sep 09 20:46:53 Mealie run.sh[1516]:     response = await original_route_handler(request)
Sep 09 20:46:53 Mealie run.sh[1516]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
Sep 09 20:46:53 Mealie run.sh[1516]:     raw_response = await run_endpoint_function(
Sep 09 20:46:53 Mealie run.sh[1516]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
Sep 09 20:46:53 Mealie run.sh[1516]:     return await dependant.call(**values)
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/app/mealie/routes/recipe/recipe_crud_routes.py", line 214, in parse_recipe_url
Sep 09 20:46:53 Mealie run.sh[1516]:     new_recipe = self.service.create_one(recipe)
Sep 09 20:46:53 Mealie run.sh[1516]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/app/mealie/services/recipe/recipe_service.py", line 149, in create_one
Sep 09 20:46:53 Mealie run.sh[1516]:     new_recipe = self.repos.recipes.create(data)
Sep 09 20:46:53 Mealie run.sh[1516]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/app/mealie/repos/repository_recipes.py", line 47, in create
Sep 09 20:46:53 Mealie run.sh[1516]:     return super().create(document)
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/app/mealie/repos/repository_generic.py", line 154, in create
Sep 09 20:46:53 Mealie run.sh[1516]:     self.session.commit()
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2028, in commit
Sep 09 20:46:53 Mealie run.sh[1516]:     trans.commit(_to_root=True)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "<string>", line 2, in commit
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
Sep 09 20:46:53 Mealie run.sh[1516]:     ret_value = fn(self, *arg, **kw)
Sep 09 20:46:53 Mealie run.sh[1516]:                 ^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 1313, in commit
Sep 09 20:46:53 Mealie run.sh[1516]:     self._prepare_impl()
Sep 09 20:46:53 Mealie run.sh[1516]:   File "<string>", line 2, in _prepare_impl
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
Sep 09 20:46:53 Mealie run.sh[1516]:     ret_value = fn(self, *arg, **kw)
Sep 09 20:46:53 Mealie run.sh[1516]:                 ^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 1288, in _prepare_impl
Sep 09 20:46:53 Mealie run.sh[1516]:     self.session.flush()
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4352, in flush
Sep 09 20:46:53 Mealie run.sh[1516]:     self._flush(objects)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4487, in _flush
Sep 09 20:46:53 Mealie run.sh[1516]:     with util.safe_reraise():
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
Sep 09 20:46:53 Mealie run.sh[1516]:     raise exc_value.with_traceback(exc_tb)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 4448, in _flush
Sep 09 20:46:53 Mealie run.sh[1516]:     flush_context.execute()
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/unitofwork.py", line 466, in execute
Sep 09 20:46:53 Mealie run.sh[1516]:     rec.execute(self)
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/unitofwork.py", line 642, in execute
Sep 09 20:46:53 Mealie run.sh[1516]:     util.preloaded.orm_persistence.save_obj(
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/persistence.py", line 93, in save_obj
Sep 09 20:46:53 Mealie run.sh[1516]:     _emit_insert_statements(
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/orm/persistence.py", line 1048, in _emit_insert_statements
Sep 09 20:46:53 Mealie run.sh[1516]:     result = connection.execute(
Sep 09 20:46:53 Mealie run.sh[1516]:              ^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1418, in execute
Sep 09 20:46:53 Mealie run.sh[1516]:     return meth(
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection
Sep 09 20:46:53 Mealie run.sh[1516]:     return connection._execute_clauseelement(
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement
Sep 09 20:46:53 Mealie run.sh[1516]:     ret = self._execute_context(
Sep 09 20:46:53 Mealie run.sh[1516]:           ^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
Sep 09 20:46:53 Mealie run.sh[1516]:     return self._exec_single_context(
Sep 09 20:46:53 Mealie run.sh[1516]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context
Sep 09 20:46:53 Mealie run.sh[1516]:     self._handle_dbapi_exception(
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2358, in _handle_dbapi_exception
Sep 09 20:46:53 Mealie run.sh[1516]:     raise exc_info[1].with_traceback(exc_info[2])
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
Sep 09 20:46:53 Mealie run.sh[1516]:     self.dialect.do_execute(
Sep 09 20:46:53 Mealie run.sh[1516]:   File "/opt/pysetup/.venv/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute
Sep 09 20:46:53 Mealie run.sh[1516]:     cursor.execute(statement, parameters)
Sep 09 20:46:53 Mealie run.sh[1516]: UnicodeEncodeError: 'ascii' codec can't encode character '\xdc' in position 49: ordinal not in range(128)

Deployment

Other

michael-genson commented 2 months ago

Are you using postgres? Looks like you have the database encoding set to ascii, rather than utf-8. More here: https://github.com/mealie-recipes/mealie/issues/1504

If you modify your database to use utf-8 encoding it should fix your issue

M4rFri commented 2 months ago

Thank you, that was indeed the problem.