kitUIN / PicImageSearch

整合图片识别 API,用于以图搜源 / Aggregator for Reverse Image Search API
https://pic-image-search.kituin.fun/
MIT License
428 stars 46 forks source link

httpx.ConnectError: All connection attempts failed #120

Closed dexforint closed 4 months ago

dexforint commented 6 months ago

When I try Yandex demo, I get error message:

...
  File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", line 83, in map_httpcore_exceptions
    raise mapped_exc(message) from exc
          │          └ 'All connection attempts failed'
          └ <class 'httpx.ConnectError'>

httpx.ConnectError: All connection attempts failed
NekoAria commented 6 months ago

Did you perhaps overlook the proxies variable used for configuring proxies?

If your network environment does not require a proxy, please set it to None. Otherwise, change it to the proxy address you are using.


Вы, возможно, упустили переменную proxies, используемую для настройки прокси?

Если ваша сетевая среда не требует прокси, пожалуйста, установите её в значение None. В противном случае измените её на адрес прокси, который вы используете.

NekoAria commented 5 months ago

According to this issue #126, the problem may lie with the DNS of your network. Try switching it and then give it another try.


Согласно этой проблеме #126, проблема может заключаться в DNS вашей сети. Попробуйте изменить его, а затем попробуйте снова.