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
Google app engine 谷歌应用引擎运行错误_Google App Engine - Fatal编程技术网

Google app engine 谷歌应用引擎运行错误

Google app engine 谷歌应用引擎运行错误,google-app-engine,Google App Engine,当我试图在google app engine上运行其中一个应用程序时,我不断得到一个叫喊图标,表示出错。如何修复它,以便运行我的应用程序 错误在hello udacity的左端 以下是错误图片的链接: 在main.py中 import webapp2 class MainHandler(webapp2.RequestHandler): def get(self): self.response.write('Hello udacity!') app = webapp2.

当我试图在google app engine上运行其中一个应用程序时,我不断得到一个叫喊图标,表示出错。如何修复它,以便运行我的应用程序

错误在hello udacity的左端

以下是错误图片的链接:

在main.py中

import webapp2

class MainHandler(webapp2.RequestHandler):
    def get(self):
        self.response.write('Hello udacity!')

app = webapp2.WSGIApplication([('/', MainHandler)], 
                                debug=True)

在app.yaml中

application: hello-udacity

version: 1

runtime: python27

api_version: 1

threadsafe: yes


handlers:

- url: /favicon\.ico


 static_files: favicon.ico

  upload: favicon\.ico


- url: .*

  script: main.app


libraries:

- name: webapp2

version: "2.5.2"

app.yaml
文件使用语法,因此您的
app.yaml
应该符合这些语法。以下是更清晰的配置

application: hello-udacity
version: 1
runtime: python27
api_version: 1
threadsafe: yes

handlers:
- url: /favicon\.ico
  static_files: favicon.ico
  upload: favicon\.ico

- url: .*
  script: main.app

libraries:
- name: webapp2
  version: "2.5.2"

有关这方面的更多信息,请参见开发者文档

您在日志中得到了什么?我在日志中添加了什么