App Engine部署失败,并显示“客户端错误(400)该请求对于未指定的原因无效”。 [英] App Engine deployment fails with "Client Error (400) The request is invalid for an unspecified reason."

查看:105
本文介绍了App Engine部署失败,并显示“客户端错误(400)该请求对于未指定的原因无效”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的python27应用程序部署由于某些原因失败:

  2012-03-09 16:46:25运行命令: ['C:\\Python27\\pythonw.exe','-u','C:\\程序文件(x86)\\Google\\google_appengine\\ appcfg.py','--no_cookies',u'--电子邮件=malartre@scolab.com','--passin','更新','C:\\\\ Users \\XXXXXXXXXXXXXX\\\ \\ GoogleAppEngine\\XXXXXXXXXXXXXX']
应用程序:XXXXXXXXXXXXXX;版本:1
主持人:appengine.google.com

开始更新应用程序:XXXXXXXXXXXXXXX,版本:1
获取当前资源限制。
密码malartre@scolab.com:扫描本地磁盘上的文件。
扫描了500个文件。
扫描了1000个文件。
扫描了1500个文件。
扫描了2000个文件。
扫描了2500个文件。
克隆2973个静态文件。
克隆了100个文件。
克隆了200个文件。
克隆了300个文件。
克隆了400个文件。
克隆了500个文件。
克隆了600个文件。
克隆了700个文件。
克隆了800个文件。
克隆了900个文件。
克隆了1000个文件。
克隆了1100个文件。
克隆了1200个文件。
克隆了1300个文件。
克隆了1400个文件。
克隆了1500个文件。
克隆了1600个文件。
克隆了1700个文件。
克隆了1800个文件。
克隆了1900个文件。
克隆了2000个文件。
克隆的2100个文件。
克隆了2200个文件。
克隆了2300个文件。
克隆了2400个文件。
克隆了2500个文件。
克隆了2600个文件。
克隆了2700个文件。
克隆了2800个文件。
克隆了2900个文件。
克隆3个应用程序文件。

上传4个文件和blob。
已上传4个文件和斑点
编译开始。
编译完成。
开始部署。
回滚更新。
错误400:---开始服务器输出---

客户端错误(400)
请求对于未指定的原因无效。
---结束服务器输出---
2012-03-09 16:47:14(进程已退出,代码为1)

现在可以关闭此窗口。

我该如何调试?
Thanks,
Carl

解决方案

只记录我在这个相关问题上的经验。 b
$ b

我得到'客户端错误400 /未指定的原因',因为我的app.yaml错误处理程序指向静态目录中的文件。



我将错误文件移至单独的目录并更新了app.yaml路径。



更新正常运行。


my python27 app deployment is failing for some reasons:

2012-03-09 16:46:25 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=malartre@scolab.com', '--passin', 'update', 'C:\\Users\\XXXXXXXXXXXXXX\\GoogleAppEngine\\XXXXXXXXXXXXXX']"
Application: XXXXXXXXXXXXXX; version: 1
Host: appengine.google.com

Starting update of app: XXXXXXXXXXXXXXX, version: 1
Getting current resource limits.
Password for malartre@scolab.com: Scanning files on local disk.
Scanned 500 files.
Scanned 1000 files.
Scanned 1500 files.
Scanned 2000 files.
Scanned 2500 files.
Cloning 2973 static files.
Cloned 100 files.
Cloned 200 files.
Cloned 300 files.
Cloned 400 files.
Cloned 500 files.
Cloned 600 files.
Cloned 700 files.
Cloned 800 files.
Cloned 900 files.
Cloned 1000 files.
Cloned 1100 files.
Cloned 1200 files.
Cloned 1300 files.
Cloned 1400 files.
Cloned 1500 files.
Cloned 1600 files.
Cloned 1700 files.
Cloned 1800 files.
Cloned 1900 files.
Cloned 2000 files.
Cloned 2100 files.
Cloned 2200 files.
Cloned 2300 files.
Cloned 2400 files.
Cloned 2500 files.
Cloned 2600 files.
Cloned 2700 files.
Cloned 2800 files.
Cloned 2900 files.
Cloning 3 application files.

Uploading 4 files and blobs.
Uploaded 4 files and blobs
Compilation starting.
Compilation completed.
Starting deployment.
Rolling back the update.
Error 400: --- begin server output ---

Client Error (400)
The request is invalid for an unspecified reason.
--- end server output ---
2012-03-09 16:47:14 (Process exited with code 1)

You can close this window now.

How can I debug that? Thanks, Carl

解决方案

Just recording my experience in this related question.

I got a 'Client Error 400/unspecified reason' because my app.yaml error handlers were pointing to files in a static directory.

I moved the error files to a separate directory and updated app.yaml paths.

Update worked properly.

这篇关于App Engine部署失败,并显示“客户端错误(400)该请求对于未指定的原因无效”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆