App Engine blank page whenever new code is added

0 views
Skip to first unread message

Pazarito via StackOverflow

unread,
Apr 24, 2014, 1:30:08 PM4/24/14
to google-appengin...@googlegroups.com

So I just downloaded Google App Engine and was going through the Google's tutorial, all was working fine but suddenly I started getting blank pages. Now the only code that displays in the browser is the default one and the built-in guestbook example.

import webapp2

class MainHandler(webapp2.RequestHandler):
    def get(self):
        self.response.out.write('Hello world!')

app = webapp2.WSGIApplication([
    ('/', MainHandler)
], debug=True)

This works. But if I add just one line to the existing code...

def get(self):
    self.response.headers['Content-Type'] = 'text/plain' #!!!!!!!
    self.response.write('Hello, World!')

Nothing gets displayed.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/23275724/app-engine-blank-page-whenever-new-code-is-added

Pazarito via StackOverflow

unread,
Apr 24, 2014, 4:15:22 PM4/24/14
to google-appengin...@googlegroups.com

So I just downloaded Google App Engine and was going through the Google's tutorial, all was working fine but suddenly I started getting blank pages. Now the only code that displays in the browser is the default one and the built-in guestbook example.

import webapp2

class MainHandler(webapp2.RequestHandler):
    def get(self):
        self.response.out.write('Hello world!')

app = webapp2.WSGIApplication([
    ('/', MainHandler)
], debug=True)

This works. But if I add just one line to the existing code...

def get(self):
    self.response.headers['Content-Type'] = 'text/plain' #!!!!!!!
    self.response.write('Hello, World!')

Nothing gets displayed.

*UPDATE

Checked the App Engine log, this is what it says.

enter image description here

Reply all
Reply to author
Forward
0 new messages