PiRSquared17 / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

Blank page responce #252

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Page working ok(displaying content)
2. Code change in py-file
3. Refresh the page in the browser

What is the expected output? What do you see instead?
Expect: the page content
See: blank page, firebug reports "200 Good to go"

What version of the product are you using? On what operating system?
It happens on my development machine (windows vista + eclipse + app engine
patch 1.1RC + SDK 1.3) and on app spot, same behavior in every browser

Please provide any additional information below.
It passes trough main.py, call real_main() function, everything seems fine,
no error and exceptions

Original issue reported on code.google.com by AnthonyLait@gmail.com on 19 Dec 2009 at 1:30

GoogleCodeExporter commented 9 years ago
yeah sometimes urlfetch return blank page with http status code 200.
and its not only in development machine

i've tried using cache-control : no-cache and max-age=300 for fix this problem,
but nothing help

anyway, sorry for my bad English.

Original comment by judotens on 20 Dec 2009 at 2:46

GoogleCodeExporter commented 9 years ago
Here is the solutions for our problem. The reason for this behavior was the 
next code
in the settings.py file:

import sys
reload(sys)
sys.setdefaultencoding("utf8") 

Removing this solves the problem, but now we have to add 
# -*- coding: utf-8 -*-
to every file where we have Unicode string.

Hope this will help others too.

Original comment by AnthonyLait@gmail.com on 4 Feb 2010 at 10:43