Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Debugging 为什么ImagesService在开发中总是返回ip为0.0.0.0的URL?_Debugging_Google App Engine_Ip Address - Fatal编程技术网

Debugging 为什么ImagesService在开发中总是返回ip为0.0.0.0的URL?

Debugging 为什么ImagesService在开发中总是返回ip为0.0.0.0的URL?,debugging,google-app-engine,ip-address,Debugging,Google App Engine,Ip Address,有人知道为什么Google App engine SDK(1.6.0)中的ImagesService.getServingUrl()在开发环境中的url总是返回0.0.0.0吗?我怎样才能改变它?起初我认为这取决于我传入“-address”参数的DevServer的绑定IP,但事实并非如此 这对我来说是个问题,因为我无法从Windows 7计算机上获取图像。但我知道它在Mac电脑上工作 另外,我希望能够从网络中的另一台机器上测试我的GWT应用程序,因此我希望绑定到本地主机以外的IP 正因为如此,

有人知道为什么Google App engine SDK(1.6.0)中的ImagesService.getServingUrl()在开发环境中的url总是返回0.0.0.0吗?我怎样才能改变它?起初我认为这取决于我传入“-address”参数的DevServer的绑定IP,但事实并非如此

这对我来说是个问题,因为我无法从Windows 7计算机上获取图像。但我知道它在Mac电脑上工作

另外,我希望能够从网络中的另一台机器上测试我的GWT应用程序,因此我希望绑定到本地主机以外的IP

正因为如此,我不得不用我真正的ip替换string.replace()“0.0.0.0”,这有点蹩脚:)


谢谢

这有点烦人,我认为很多人的代码中都有相同的字符串替换。我怀疑GAE团队把它作为一个低优先级(正确的),因为它的低影响和简单的解决方法。无论如何,他们的问题追踪器上至少有一个未解决的问题:

这是另一个相关问题:
在启动开发服务器时,您可能需要仔细检查是否没有指定(甚至是意外地)ip地址。

我通过“编辑->应用程序设置”,然后从“外部命令行标志”中删除所有值来解决此问题

我明白了。我在那里发布了新的bug。我们看看他们怎么说。GAE团队已经承认了这个错误。希望将来能修好。