推送到开发时遇到 GAE 错误

发布于 2024-11-29 12:51:11 字数 735 浏览 0 评论 0原文

我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酸甜透明夹心 2024-12-06 12:51:11

错误消息显示

in "app\app.yaml", line 24, column 19"

script=None

虽然您显示的 app.yaml 都已设置脚本但没有 24 行。

因此,要么您没有显示整个 app.yaml,要么这不是 dev_appserver.py 看到的 app.yaml。尝试搜索另一个文件并确保该文件位于正确的位置。

另外,检查 script 之前的空格——显然它必须完全正确才能正常工作。如果您没有 GAE 正在查找的 form_post.py 文件,您也会收到此错误。

The error message says

in "app\app.yaml", line 24, column 19"

and

script=None

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 the app.yaml that dev_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 a form_post.py file exactly where GAE is looking for it, you will also get this error.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文