Google app engine Google应用程序引擎错误(在此服务器上找不到请求的URL/)

Google app engine Google应用程序引擎错误(在此服务器上找不到请求的URL/),google-app-engine,Google App Engine,我正在尝试创建一个简单的web应用程序来向Udacity打招呼,并将其上传到Google App Engine,但我不断地遇到一些错误 来自谷歌应用程序引擎的错误消息: 11:57 PM Host: appengine.google.com Error parsing yaml file: Unable to assign value 'udacityassignment2' to attribute 'url': Value 'udacityassignment2' for url does

我正在尝试创建一个简单的web应用程序来向Udacity打招呼,并将其上传到Google App Engine,但我不断地遇到一些错误

来自谷歌应用程序引擎的错误消息:

11:57 PM Host: appengine.google.com
Error parsing yaml file:
Unable to assign value 'udacityassignment2' to attribute 'url':
Value 'udacityassignment2' for url does not match expression '^(?:(?!\^)/.*|\..*|(\(.).*(?!\$).)$'
  in "C:\Users\Wealthy\Desktop\ambhelloworld\udacityassignment2\app.yaml", line 12, column 8
2013-05-27 23:57:00 (Process exited with code 1)

You can close this window now.
application: udacityassignment2
version: 1
runtime: python27
api_version: 1
threadsafe: yes

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

- url: udacityassignment2
  script: main.app

libraries:
- name: webapp2
  version: "2.5.2"
import webapp2

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

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

11:57 PM Host: appengine.google.com
Error parsing yaml file:
Unable to assign value 'udacityassignment2' to attribute 'url':
Value 'udacityassignment2' for url does not match expression '^(?:(?!\^)/.*|\..*|(\(.).*(?!\$).)$'
  in "C:\Users\Wealthy\Desktop\ambhelloworld\udacityassignment2\app.yaml", line 12, column 8
2013-05-27 23:57:00 (Process exited with code 1)

You can close this window now.
application: udacityassignment2
version: 1
runtime: python27
api_version: 1
threadsafe: yes

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

- url: udacityassignment2
  script: main.app

libraries:
- name: webapp2
  version: "2.5.2"
import webapp2

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

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

11:57 PM Host: appengine.google.com
Error parsing yaml file:
Unable to assign value 'udacityassignment2' to attribute 'url':
Value 'udacityassignment2' for url does not match expression '^(?:(?!\^)/.*|\..*|(\(.).*(?!\$).)$'
  in "C:\Users\Wealthy\Desktop\ambhelloworld\udacityassignment2\app.yaml", line 12, column 8
2013-05-27 23:57:00 (Process exited with code 1)

You can close this window now.
application: udacityassignment2
version: 1
runtime: python27
api_version: 1
threadsafe: yes

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

- url: udacityassignment2
  script: main.app

libraries:
- name: webapp2
  version: "2.5.2"
import webapp2

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

app = webapp2.WSGIApplication([
    ('/', MainHandler)
], debug=True)
谷歌应用程序引擎控制台:

Error: Not Found
The requested URL / was not found on this server.

请提供有关如何更正此问题的任何帮助。

错误表明app.yaml中的
url
条目无效。试试这个

url: /udacityassignment2
正如Tim所指出的,映射应该是

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

您可以按如下所示创建URL条目,以便在创建URL路由表时具有更大的灵活性

- url: .*
  script: main.app

此外,应用程序的WSGI处理程序中的映射不匹配。