【问题标题】:Connection Refused in pythonAnwherepythonAnywhere 中的连接被拒绝
【发布时间】:2019-04-22 23:48:09
【问题描述】:

使用 BAsh 控制台我为 Python3.6 安装了 Steem 模块 一切似乎都是正确的,但是当我尝试在 Pythonanywhere 中运行我的 python 脚本时,它说与 api.steemit.com 连接有问题 但脚本在我的电脑上运行良好。 代码 import steem from steem import Steem s=Steem() s.get_account_history(your_ac, index_from=-1, limit=12) 日志在这里。有没有办法解决这个问题?

WARNING:root:Retry in 1s -- MaxRetryError: HTTPSConnectionPool(host='api.steemit.com', port=443): Max retries exceeded with url: / (由 NewC 引起 onnectionError(': 无法建立新连接: [Errno 111] Connectio n 拒绝',)) WARNING:urllib3.connectionpool:Retrying (Retry(total=19, connect=None, read=None, redirect=0, status=None)) 连接被 'NewConnect ionError(': 无法建立新连接: [Errno 111] Connection refu sed',)': /

【问题讨论】:

    标签: https pythonanywhere connection-refused


    【解决方案1】:

    PythonAnywhere 上免费帐户的外部连接通过代理传递。您收到的错误看起来像是您使用的库没有使用代理。检查该库的文档以了解如何将其配置为使用代理。如果不支持,请联系作者,看看他们是否可以添加对代理的支持。

    【讨论】:

      猜你喜欢
      • 2016-08-06
      • 2021-01-20
      • 2017-08-08
      • 2013-01-03
      • 1970-01-01
      • 2023-03-21
      • 1970-01-01
      • 2018-03-18
      • 2017-11-01
      相关资源
      最近更新 更多