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,我使用kay框架已经有一段时间了,但是自从上次更新AppEngine以来,我无法上传非纯ASCII文件 我得到的错误是: UnicodeDecodeError:“ascii”编解码器无法解码位置0中的字节0xff:序号不在范围内(128) 以下是完整日志: MacBook-Pro-de-Erwann:scrollshowPROD diwann$ python manage.py appcfg update Running on Kay-2.0.0qa1 Compiling templates..

我使用kay框架已经有一段时间了,但是自从上次更新AppEngine以来,我无法上传非纯ASCII文件

我得到的错误是:

UnicodeDecodeError:“ascii”编解码器无法解码位置0中的字节0xff:序号不在范围内(128)

以下是完整日志:

MacBook-Pro-de-Erwann:scrollshowPROD diwann$ python manage.py appcfg update
Running on Kay-2.0.0qa1
Compiling templates...
Now compiling templates in www/templates to www/templates_compiled.
Now compiling templates in user/templates to user/templates_compiled.
Now compiling templates in presentation/templates to presentation/templates_compiled.
Now compiling templates in /Users/diwann/Source/scrollshow/scrollshow-web/lexman/scrollshowPROD/kay/auth/templates to /Users/diwann/Source/scrollshow/scrollshow-web/lexman/scrollshowPROD/kay/auth/templates_compiled.
Now compiling templates in /Users/diwann/Source/scrollshow/scrollshow-web/lexman/scrollshowPROD/presentation/templates to /Users/diwann/Source/scrollshow/scrollshow-web/lexman/scrollshowPROD/presentation/templates_compiled.
Now compiling templates in /Users/diwann/Source/scrollshow/scrollshow-web/lexman/scrollshowPROD/user/templates to /Users/diwann/Source/scrollshow/scrollshow-web/lexman/scrollshowPROD/user/templates_compiled.
Now compiling templates in /Users/diwann/Source/scrollshow/scrollshow-web/lexman/scrollshowPROD/www/templates to /Users/diwann/Source/scrollshow/scrollshow-web/lexman/scrollshowPROD/www/templates_compiled.
Finished compiling templates...
02:36 AM Host: appengine.google.com
02:36 AM Application: scrollshow; version: 1
02:36 AM 
Starting update of app: scrollshow, version: 1
02:36 AM Getting current resource limits.
02:36 AM Scanning files on local disk.
Could not guess mimetype for static/assets/themes/plimse/California beach/Repertoire temporaire pour combler un ancien nom de theme.  Using application/octet-stream.
02:37 AM Scanned 500 files.
Could not guess mimetype for static/assets/themes/plimse/California beach/Repertoire temporaire pour combler un ancien nom de theme.  Using application/octet-stream.
02:37 AM Cloning 430 static files.
02:37 AM Cloning 466 application files.
02:37 AM Uploading 3 files and blobs.
02:37 AM Missing File Path : static/assets/themes/plimse/textures/scrollViewTexturedBackgroundColor_web.jpg
02:37 AM Missing File Path : static/assets/themes/plimse/textures/underPageBackgroundColor_web.jpg
02:37 AM Missing File Path : static/media/js/scrollshowReader.js
02:37 AM File Path : static/assets/themes/plimse/textures/scrollViewTexturedBackgroundColor_web.jpg
ERROR:root:An unexpected error occurred. Aborting.
Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2302, in DoUpload
    self.blob_batcher.Flush()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 1579, in Flush
    self.SendBatch()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 1536, in SendBatch
    payload,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
02:37 AM Rolling back the update.
Traceback (most recent call last):
  File "manage.py", line 24, in <module>
    script.run()
  File "/Users/diwann/Source/scrollshow/scrollshow-web/lexman/scrollshowPROD/kay/lib/werkzeug/script.py", line 121, in run
    return func()
  File "/Users/diwann/Source/scrollshow/scrollshow-web/lexman/scrollshowPROD/kay/management/appcfg.py", line 58, in do_appcfg_passthru_argv
    result = app.Run()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2688, in Run
    self.action(self)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4235, in __call__
    return method()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 3247, in Update
    self.UpdateVersion(rpcserver, self.basepath, appyaml, yaml_file_basename)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 3196, in UpdateVersion
    return appversion.DoUpload(paths, openfunc)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2302, in DoUpload
    self.blob_batcher.Flush()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 1579, in Flush
    self.SendBatch()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 1536, in SendBatch
    payload,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
MacBook Pro de Erwann:scrollshowPROD diwann$python manage.py appcfg更新 在Kay-2.0.0qa1上运行 正在编译模板。。。 现在在www/templates中编译模板到www/templates\u编译。 现在编译用户/模板中的模板到用户/模板\u编译。 现在正在编译演示文稿中的模板/模板到已编译的演示文稿/模板。 现在编译/Users/diwann/Source/scrollshow/scrollshow web/lexman/scrollshowPROD/kay/auth/templates中的模板到/Users/diwann/Source/scrollshow/scrollshow web/lexman/scrollshowPROD/kay/auth/templates。 现在编译/Users/diwann/Source/scrollshow/scrollshow web/lexman/scrollshowPROD/presentation/templates中的模板到/Users/diwann/Source/scrollshow/scrollshow web/lexman/scrollshowPROD/presentation/templates。 现在编译/Users/diwann/Source/scrollshow/scrollshow web/lexman/scrollshowPROD/user/templates中的模板到/Users/diwann/Source/scrollshow/scrollshow web/lexman/scrollshowPROD/user/templates。 现在编译/Users/diwann/Source/scrollshow/scrollshow web/lexman/scrollshowPROD/www/templates中的模板到/Users/diwann/Source/scrollshow/scrollshow web/lexman/scrollshowPROD/www/templates。 已完成编译模板。。。 凌晨02:36主持人:appengine.google.com 凌晨02:36应用程序:滚动显示;版本:1 凌晨02:36 正在启动应用程序的更新:scrollshow,版本:1 凌晨02:36获取当前资源限制。 02:36 AM扫描本地磁盘上的文件。 无法猜测静态/资产/主题/plimse/加利福尼亚海滩/临时战斗曲目的mimetype。使用应用程序/八位字节流。 凌晨02:37扫描了500个文件。 无法猜测静态/资产/主题/plimse/加利福尼亚海滩/临时战斗曲目的mimetype。使用应用程序/八位字节流。 凌晨02:37克隆430个静态文件。 凌晨02:37克隆466个应用程序文件。 凌晨02:37上传3个文件和blob。 02:37 AM缺少文件路径:static/assets/themes/plimse/textures/scrollViewTexturedBackgroundColor_web.jpg 02:37 AM缺少文件路径:static/assets/themes/plimse/textures/underPageBackgroundColor_web.jpg 02:37 AM缺少文件路径:static/media/js/scrollshowReader.js 02:37 AM文件路径:static/assets/themes/plimse/textures/scrollViewTexturedBackgroundColor_web.jpg 错误:根:发生意外错误。流产。 回溯(最近一次呼叫最后一次): 文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第2302行,双pload格式 self.blob_batcher.Flush() 文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第1579行,刷新 self.SendBatch() 文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第1536行,在SendBatch中 有效载荷, UnicodeDecodeError:“ascii”编解码器无法解码位置0中的字节0xff:序号不在范围内(128) 02:37 AM正在回滚更新。 回溯(最近一次呼叫最后一次): 文件“manage.py”,第24行,在 script.run() 文件“/Users/diwann/Source/scrollshow/scrollshowweb/lexman/scrollshowPROD/kay/lib/werkzeug/script.py”,第121行,运行中 返回func() 文件“/Users/diwann/Source/scrollshow/scrollshow web/lexman/scrollshowPROD/kay/management/appcfg.py”,第58行,在do_appcfg_passthru_argv中 结果=app.Run() 文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第2688行,正在运行 自我行动(self) 文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第4235行,在调用中__ 返回方法() 文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第3247行,更新中 UpdateVersion(rpcserver、self.basepath、appyaml、yaml\u file\u basename) 文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第3196行,在UpdateVersion中 返回appversion.DoUpload(路径,openfunc) 文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第2302行,双pload格式 self.blob_batcher.Flush() 文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第1579行,刷新 self.SendBatch() 文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第1536行,在SendBatch中 有效载荷, UnicodeDecodeError:“ascii”编解码器无法解码位置0中的字节0xff:序号不在范围内(128) 请注意,“缺少文件路径”部分是我自己添加到kay的,以了解是哪些文件导致了错误

首先,我的代码中的一些字符似乎不再被允许,在我将它们全部删除后,我成功地将我的应用程序上载到应用程序引擎。 但现在,我需要上传一个图像,它仍然抱怨它不是ASCII码。。。 (此日志显示它可以