错误appcfg.py:2488发生意外错误。中止

时间:2014-07-01 11:38:14

标签: php python google-app-engine

我想在appengine上部署对我的Web应用程序的更改,然后我收到此错误,我从未在此处更改app.yaml

handlers:

- url: /assets/lib/parsley/(.*\.md)
  static_files: assets/lib/parsley/\1
  upload: assets/lib/parsley/(.*\.md)
  mime_type: text/x-markdown

- url: /assets/lib/nvd3/(.*\.md)
  static_files: assets/lib/nvd3/\1
  upload: assets/lib/nvd3/(.*\.md)
  mime_type: text/x-markdown

- url: /assets/js/(.*\.json)
  static_files: assets/js/\1
  upload: assets/js/(.*\.json)
  mime_type: application/json

- url: /assets/lib/examples/(.*\.json)
  static_files: assets/lib/examples/\1
  upload: assets/lib/examples/(.*\.json)
  mime_type: application/json

- url: /assets/css/fonts/glyphicons/(.*\.(eot|ttf|woff))
  static_files: assets/css/fonts/glyphicons/\1
  upload: assets/css/fonts/glyphicons/(.*\.(eot|ttf|woff))
  mime_type: application/x-woff

- url: /assets/css/fonts/font-awesome/(.*\.(eot|ttf|woff|otf))
  static_files: assets/css/fonts/font-awesome/\1
  upload: assets/css/fonts/font-awesome/(.*\.(eot|ttf|woff|otf))
  mime_type: application/font-woff 

- url: /assets/css/fontello/font/(.*\.(eot|ttf|woff))
  static_files: assets/css/fontello/font/\1
  upload: assets/css/fontello/font/(.*\.(eot|ttf|woff))
  mime_type: application/x-woff

- url: /assets/css/font/(.*\.(eot|ttf|woff))
  static_files: assets/css/font/\1
  upload: assets/css/font/(.*\.(eot|ttf|woff))
  mime_type: application/x-woff

- url: /assets/css
  static_dir: assets/css

- url: /assets/js
  static_dir: assets/js

- url: /assets/lib
  static_dir: assets/lib

- url: /assets/img
  static_dir: assets/img

- url: /.*
  script: index.php
  secure: always

导致我出现此错误

2014-07-01 19:32:28,868 ERROR appcfg.py:2488 An unexpected error occurred. Aborting. 
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2329, in DoUpload
    self._UploadMissingFiles(missing_files, openfunc)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2455, in _UploadMissingFiles
    self.UploadFile(missing_file, file_handle)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2002, in UploadFile
    file_classification.StaticMimeType())
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1442, in AddToBatch
    self.SendSingleFile(path, payload, mime_type)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1388, in SendSingleFile
    path=path)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1684, in Send
    result = self.rpcserver.Send(url, payload=payload, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 408, in Send
    HttpRequestToString(req, include_data=self.debug_data))
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 102, in HttpRequestToString
    'data': req.get_data(),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 307343: ordinal not in range(128)
07:32 PM Rolling back the update.
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 126, in <module>
    run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 122, in run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5220, in <module>
    main(sys.argv)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5211, in main
    result = AppCfgApp(argv).Run()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2886, in Run
    self.action(self)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4890, in __call__
    return method()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3682, in Update
    self._UpdateWithParsedAppYaml(appyaml, self.basepath)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3735, in _UpdateWithParsedAppYaml
    self.UpdateVersion(rpcserver, basepath, appyaml, APP_YAML_FILENAME)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3618, in UpdateVersion
    return appversion.DoUpload(paths, openfunc)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2329, in DoUpload
    self._UploadMissingFiles(missing_files, openfunc)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2455, in _UploadMissingFiles
    self.UploadFile(missing_file, file_handle)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2002, in UploadFile
    file_classification.StaticMimeType())
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1442, in AddToBatch
    self.SendSingleFile(path, payload, mime_type)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1388, in SendSingleFile
    path=path)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1684, in Send
    result = self.rpcserver.Send(url, payload=payload, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 408, in Send
    HttpRequestToString(req, include_data=self.debug_data))
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 102, in HttpRequestToString
    'data': req.get_data(),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 307343: ordinal not in range(128)
2014-07-01 19:32:30 (Process exited with code 1)

You can close this window now.

我真的不知道发生了什么。它曾经在昨天工作正常。

有人可以帮助我,我在这里失踪了吗

提前感谢,祝你有个美好的一天。

1 个答案:

答案 0 :(得分:1)

我在这里找到了答案

Google App Engine: Won't serve static assets with below error:

基本上我的css发生了变化,所以当我上传它时发生了错误我在使用php之前从未在app引擎中工作过所以让我有这个错误,但这是快速修复


编辑app.yaml每个url : /dir必须有一个mime_type例如


- url: /assets/css<br> static_dir: assets/css<br> mime_type: "text/css"

问题是通过这一行mime_type: "text/css"

解决的