python-docs-samples icon indicating copy to clipboard operation
python-docs-samples copied to clipboard

empty firefox browser

Open samsammurphy opened this issue 9 years ago • 7 comments

In which file did you encounter the issue?

python-docs-samples/appengine/standard/flask/tutorial/templates/form.html python-docs-samples/appengine/standard/flask/tutorial/templates/submitted_form.html

Did you change the file? If so, how?

<html>
  <head>
    <meta charset="utf-8"/>
    ...

Describe the issue

The app does not render the html templates in firefox (although they do render when opened up by the browser outside of the app). This is what the FireFox Developer Tools console said:

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

samsammurphy avatar Jul 09 '17 03:07 samsammurphy

@andrewsg can you take a look at this?

theacodes avatar Jul 13 '17 16:07 theacodes

I was unable to reproduce this issue on GAE Standard, even after submitting non-ASCII character responses in the form. On inspection of the response, I can see that the response headers include Content-Type: "text/html; charset=utf-8" as expected, which should prevent any confusion on the browser side.

@samsammurphy, do you have any idea what might be specific about your deployment that would cause the Content-Type header to not include an encoding?

andrewsg avatar Jul 18 '17 22:07 andrewsg

kind of embarrassing..I didn't read the error msg telling me it couldn't find flask. browser and error msg (sorry)

samsammurphy avatar Jul 19 '17 06:07 samsammurphy

after installing flask into lib install flask in lib

samsammurphy avatar Jul 19 '17 06:07 samsammurphy

I seem to get sandoxed in? sandboxed (sorry if also obvious)

samsammurphy avatar Jul 19 '17 06:07 samsammurphy

@samsammurphy that's.. unusual. What happens if you run dev_appserver.py app.yaml?

theacodes avatar Jul 19 '17 16:07 theacodes

dev_appserver_appyaml

I do not have this path 'lib/cacerts/urlfetch_cacerts.txt' inside my site-packages for python 2.7.

running python 2.7.11

I am not really sure what Sandbox is..

The WSGI select exception goes away if I increase timeout.. _READINESS_TIMEOUT_SECONDS = 4 _SECONDS_TO_MILLISECONDS = 1000

samsammurphy avatar Jul 19 '17 20:07 samsammurphy