webapp2 http error 500
<p>I try to run a code snippet in goold app engine and find a weird problem. When I run the code snippet below, it report error:</p>

<blockquote>
  <p>localhost is currently unable to handle this request.HTTP ERROR 500</p>
</blockquote>

<pre><code>import webapp2
import cgi

form="""
&lt;!DOCTYPE html&gt;
&lt;html&gt;&lt;head&gt;
    &lt;title&gt;Unit 2 Rot 13&lt;/title&gt;
  &lt;/head&gt;    
  &lt;body&gt;
    &lt;h2&gt;Enter some text to ROT13:&lt;/h2&gt;
    &lt;form method="post"&gt;
      &lt;textarea name="text" style="height: 100px; width: 400px;"&gt;{{text}}&lt;/textarea&gt;
      &lt;br&gt;
      &lt;input type="submit" value="Submit Query"&gt;
    &lt;/form&gt;   
&lt;/body&gt;&lt;/html&gt;"""

class MainHandler(webapp2.RequestHandler):
    def get(self):
        self.response.out.write(form)
    def post(self):
        text = self.request.get('text')
        self.response.out.write(self.request)

app = webapp2.WSGIApplication([
    ('/', MainHandler)], debug=True)
</code></pre>

<p>But when I delete one line code in my <code>post</code> method, it works well. The deleted part:<code>text = self.request.get('text')</code>
Could anyone help me with that? </p>