首页 > 解决方案 > H2O 连接错误:HTTP 403 禁止

问题描述

我目前正在尝试在 Python 的外部 ssh 机器(Linux)上运行 H2O 服务器实例。

但是运行时出现以下错误h2o.init()

H2OConnectionError: Could not establish link to the H2O cloud http://127.0.0.1:54321 after 20 retries
[02:43.11] H2OServerError: HTTP 403 Forbidden:

因此服务器正在运行,并且在测试连接时会触发错误。我认为这与代理设置有关。但我不知道如何以及在哪里配置。

有什么帮助吗?

标签: linuxsshproxyhttp-status-code-403h2o

解决方案


通常您需要取消设置“http_proxy”环境变量。

所以:

del os.environ[“http_proxy”]

推荐阅读