Giter VIP home page Giter VIP logo

Comments (9)

hay-kot avatar hay-kot commented on June 6, 2024

Most likely your firewall is blocking the scraper from accessing the internet.

What do your logs say?

from mealie.

Manny8787 avatar Manny8787 commented on June 6, 2024

hmm, I hadn't changed anything on the firewall and it had been working as expected.
The log file is empty, i'm guessing that is not normal.

from mealie.

boc-the-git avatar boc-the-git commented on June 6, 2024

I've also experienced an issue where it was dockers dns at fault. I had done some googling around docker container not being able to reach the internet.

I can't remember the solution exactly, but I think it might've been as simple as destroy and recreate the container.

from mealie.

9mahall avatar 9mahall commented on June 6, 2024

Also get this error when adding any recipe either through tunnel or direct connect.

Were you able to resolve without recreating the container?

from mealie.

Kuchenpirat avatar Kuchenpirat commented on June 6, 2024

It's impossible for us to recreate your problem without any logs and deployment details.

Take a look at the answers above, but that is as specific as we can get, without more information

from mealie.

9mahall avatar 9mahall commented on June 6, 2024

My B, super new to this. Would this work below or are we looking for the log file itself?

Currently running through portainer and haven't had any issues adding any recipes until recently, does look like a connection issue though

s
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions

d
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 253, in handle_async_request
raise exc
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 237, in handle_async_request
response = await connection.handle_async_request(request)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpcore/_async/connection.py", line 86, in handle_async_request
raise exc
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpcore/_async/connection.py", line 63, in handle_async_request
stream = await self._connect(request)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpcore/_async/connection.py", line 111, in _connect
stream = await self._network_backend.connect_tcp(**kwargs)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpcore/backends/auto.py", line 29, in connect_tcp
return await self._backend.connect_tcp(
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 109, in connect_tcp
with map_exceptions(exc_map):
File "/usr/local/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc)
httpcore.ConnectError: All connection attempts failed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 436, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/opt/pysetup/.venv/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/fastapi/applications.py", line 292, in call
await super().call(scope, receive, send)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 24, in call
await responder(scope, receive, send)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
raise e
File "/opt/pysetup/.venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/app/mealie/routes/_base/routers.py", line 35, in custom_route_handler
response = await original_route_handler(request)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 273, in app
raw_response = await run_endpoint_function(
File "/opt/pysetup/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
return await dependant.call(**values)
File "/app/mealie/routes/recipe/recipe_crud_routes.py", line 170, in parse_recipe_url
recipe, extras = await create_from_url(req.url)
File "/app/mealie/services/scraper/scraper.py", line 33, in create_from_url
new_recipe, extras = await scraper.scrape(url)
File "/app/mealie/services/scraper/recipe_scraper.py", line 30, in scrape
result = await scraper.parse()
File "/app/mealie/services/scraper/scraper_strategies.py", line 202, in parse
scraped_data = await self.scrape_url()
File "/app/mealie/services/scraper/scraper_strategies.py", line 170, in scrape_url
recipe_html = await self.get_html(self.url)
File "/app/mealie/services/scraper/scraper_strategies.py", line 103, in get_html
return await safe_scrape_html(url)
File "/app/mealie/services/scraper/scraper_strategies.py", line 35, in safe_scrape_html
async with client.stream("GET", url, timeout=SCRAPER_TIMEOUT, headers={"User-Agent": _FIREFOX_UA}) as resp:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in aenter
return await anext(self.gen)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_client.py", line 1573, in stream
response = await self.send(
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_client.py", line 1617, in send
response = await self._send_handling_auth(
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
response = await self._send_handling_redirects(
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
response = await self._send_single_request(request)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_client.py", line 1719, in _send_single_request
response = await transport.handle_async_request(request)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 352, in handle_async_request
with map_httpcore_exceptions():
File "/usr/local/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: All connection attempts failed
INFO: 127.0.0.1:34058 - "GET /api/app/about HTTP/1.1" 200 OK

from mealie.

Manny8787 avatar Manny8787 commented on June 6, 2024

In the end I think all I did was restart my server.

from mealie.

Kuchenpirat avatar Kuchenpirat commented on June 6, 2024

Yeah, seems like the service found no way to connect. (httpx.ConnectError: All connection attempts failed)

So i would recheck:

  • that the provided url was correct / use another one.
  • check whether firewall roules changed (maybe due to the restart or upgrades)
  • then try what @boc-the-git said: Create an backup -> Destroy the container & purge the image -> Redownload & Restart the container

from mealie.

github-actions avatar github-actions commented on June 6, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from mealie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.