为什么我收到错误“服务器返回 HTTP 代码:404"?使用 Google App Engine 和 Google Earth Engine [英] Why I am getting the error "Server returned HTTP code: 404" using Google App Engine and Google Earth Engine
本文介绍了为什么我收到错误“服务器返回 HTTP 代码:404"?使用 Google App Engine 和 Google Earth Engine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试运行一个简单的程序,我可以将其用作 Google Earth Engine API 的工作示例,但是每次运行时都会出现上述错误.代码如下:
I am trying to run a simple program that I can use as a working example for the Google Earth Engine API, however I get the above error whenever I run it. Here is the code:
import ee
import ee.mapclient
image1 = ee.Image(1);
print(image1);
如您所见,这是一个非常简单的程序,我只是想让它运行起来,这样我就可以执行更高级的任务,但我什至无法让这个简单的程序运行起来.
As you can see it is a very simple program I just want to get it to run so I can do more advanced tasks but I can't even get this simple one to work.
推荐答案
您没有对您的应用程序进行身份验证,因此出现错误.
You did not authenticate your application, hence the error.
添加:
ee.Initialize()
你可以走了.
这篇关于为什么我收到错误“服务器返回 HTTP 代码:404"?使用 Google App Engine 和 Google Earth Engine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文