Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine dev app server does not display detailed error message

When developing on Google App Engine dev app server locally (python) and encounter an error, the browser will just show something like the following:

Server error The website encountered an error while retrieving http://localhost:8080/. It may be down for maintenance or configured incorrectly. Here are some suggestions: Reload this webpage later. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Is there a configuration to display the detailed error message?

like image 661
bobojam Avatar asked Dec 15 '11 18:12

bobojam


People also ask

How do I see Google API errors?

Google APIs define a set of standard error payloads for error details, which you can find in google/rpc/error_details. proto. These cover the most common needs for API errors, such as quota failure and invalid parameters. Like error codes, developers should use these standard payloads whenever possible.

How do I check GCP error logs?

To view the log entry associated with a sample error, click View logs from any entry in the Recent samples panel. This takes you to the Logs Explorer in the Cloud Logging console.

What is Google App Engine explain in detail?

App Engine is a fully managed, serverless platform for developing and hosting web applications at scale. You can choose from several popular languages, libraries, and frameworks to develop your apps, and then let App Engine take care of provisioning servers and scaling your app instances based on demand.


1 Answers

You can use commandline and start dev server with --debug to get verbose debug messages. Here are the docs: http://code.google.com/appengine/docs/python/tools/devserver.html#Command_Line_Arguments

You can also add logging to your app to capture the info: http://code.google.com/appengine/docs/python/runtime.html#Logging

like image 51
Sologoub Avatar answered Oct 15 '22 02:10

Sologoub