收藏
回答

云托管服务需要访问外网的服务,在本地开发测试没问题,但是上线以后就无法访问,需要单独配置吗?

域名为示例域名:

Traceback (most recent call last):
07/26 10:48:50
During handling of the above exception, another exception occurred:
07/26 10:48:50
    +------------------------------------
07/26 10:48:50
    | requests.exceptions.ConnectionError: HTTPSConnectionPool(host='example.worker.dev', port=443): Max retries exceeded with url: /api/v1/category/index?user_id=0 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 101] Network is unreachable'))
回答关注问题邀请回答
收藏

1 个回答

  • Alfred Huang
    Alfred Huang
    2024-07-26

    看到访问的是 example.worker.dev 这个地址。

    这个地址看起来本身不可访问。是地址错误了么?

    2024-07-26
    有用
    回复 1
    • 李大宝
      李大宝
      发表于移动端
      2024-07-26
      知道问题了,是 cloudflare 的 worker 域名被 ban 了,只能在 cloudflare 上绑定自己的域名。
      2024-07-26
      回复
登录 后发表内容
问题标签