推送到开发时遇到 GAE 错误
我是 GAE 新手,出现以下错误。不知道是由于 app.yaml 文件造成的吗?
"ERROR 2011-08-13 18:39:57,723 dev_appserver_main.py:579] Fatal error when loa
ding application configuration:
Invalid object:
Unknown url handler type.
<URLMap
secure=default
static_files=None
auth_fail_action=redirect
require_matching_file=None
static_dir=None
script=None
url=/
upload=None
expiration=None
position=None
login=optional
mime_type=None
>
in "app\app.yaml", line 24, column 19"
应用程序.yaml
application: test
version: 1
runtime: python
api_version: 1
handlers:
# simple static web site
# static as root folder
- url: /.*
script: form_post.py
i m new to GAE and i got the following error. Wonder is it due to the app.yaml file?
"ERROR 2011-08-13 18:39:57,723 dev_appserver_main.py:579] Fatal error when loa
ding application configuration:
Invalid object:
Unknown url handler type.
<URLMap
secure=default
static_files=None
auth_fail_action=redirect
require_matching_file=None
static_dir=None
script=None
url=/
upload=None
expiration=None
position=None
login=optional
mime_type=None
>
in "app\app.yaml", line 24, column 19"
app.yaml
application: test
version: 1
runtime: python
api_version: 1
handlers:
# simple static web site
# static as root folder
- url: /.*
script: form_post.py
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误消息显示
,
虽然您显示的
app.yaml
都已设置脚本但没有 24 行。因此,要么您没有显示整个
app.yaml
,要么这不是dev_appserver.py
看到的app.yaml
。尝试搜索另一个文件并确保该文件位于正确的位置。另外,检查
script
之前的空格——显然它必须完全正确才能正常工作。如果您没有 GAE 正在查找的form_post.py
文件,您也会收到此错误。The error message says
and
While the
app.yaml
you show both has the script set and doesn't have 24 lines.So either you didn't show your whole
app.yaml
or that's not theapp.yaml
thatdev_appserver.py
is seeing. Try searching for another one and making sure the file is in the right place.Also, check the whitespace before
script
-- apparently it has to be exactly right for things to work. If you don't have aform_post.py
file exactly where GAE is looking for it, you will also get this error.