LoginSignup
1
0

More than 5 years have passed since last update.

AppEngineの開発サーバーで静的ファイルが表示されないバグ

Posted at

Windows8.1かつpython 2.7.7な環境でAppEngineの開発サーバーを動かすと
静的なファイルの表示ができなくなるバグがあるみたいです。
久々に動かしてみたら静的なファイルが出なくなって焦りました。

TypeError: WSGI response header value u'application/json' is not of type str.
こんな感じのエラーがでてjsやらcssやら静的にホストしたファイル一切が表示されません。
unicode型とstr型で不整合が起きているみたいですね。

解決策

Python 2.7.7を2.7.8にする

http://bugs.python.org/issue21652
どうもWindows版Pythonにminetype絡みのバグが有ったみたいです。
アップデートしてあげれば無事解決。

参考:
http://stackoverflow.com/questions/24106776/google-app-engine-wont-serve-static-assets-with-below-error

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0