【问题标题】:unable to connect to api.heroku.com无法连接到 api.heroku.com
【发布时间】:2012-04-26 04:21:57
【问题描述】:

我正在使用来自网站 http://devcenter.heroku.com/articles/java 的 heroku。

我的操作系统是 windows7。

当我在命令提示符中键入命令 heroku 时,我得到以下信息:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\HARIKA_RAM>heroku
Usage: heroku COMMAND [--app APP] [command-specific-options]

Primary help topics, type "heroku help TOPIC" for more details:

一切正常。

当我尝试登录时,它会给出以下消息:

C:\Users\HARIKA_RAM>heroku login
Enter your Heroku credentials.
Email: evsandeep@gmail.com
Password:
 !    Unable to connect to api.heroku.com

C:\Users\HARIKA_RAM>heroku update
-----> Updating to latest client... failed
   !   getaddrinfo: This is usually a temporary error during hostname
resolution and means that the local server did not receive a response from an
authoritative server.

感谢任何帮助。提前致谢。

【问题讨论】:

  • 我已重新格式化您的帖子 - 每个控制台行前面的四个空格大大提高了可读性。如果您可以在发帖前花时间对问题进行一些格式化,这将提高您的回复/投票率:)。

标签: heroku cloud command-line-interface connect


【解决方案1】:

如果您在防火墙后面,您是否尝试设置您的 http_proxy ?

例如。设置 http_proxy=proxy.mycompany.com:8080

【讨论】:

    猜你喜欢
    • 2017-06-06
    • 1970-01-01
    • 2018-02-07
    • 1970-01-01
    • 2019-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多