The user interface showing batched occurrences of the example .

The Occurrences column shows the number of messages for each error type along with a time graph:

Click the error name to view the error Gmail Numeric Code 6922 issue details page, which contains all of the available information about an error, including links to the source code:

The user interface showing the

error details page.

Configure notifications

You can configure Error Reporting to notify you when a new type of error arrives. Notifications aren't sent when there are new occurrences of existing errors:

Go to Error Reporting:

Go to Error Reporting

To enable email notifications, click More more_vert and select Turn on new error notifications for project from the drop-down list.


To generate new types of errors, click Activate Cloud ShellActivate Shell Button and run the following script:




while [ $COUNTER -lt 3 ]; do

gcloud beta error-reporting events report --service tutorial --service-version v1 \

--message "java.lang.ArrayIndexOutOfBoundsException: $COUNTER

at com.example.AppController.createUser(

at com.example.User(

at javax.servlet.http.HttpServlet.service (

at javax.servlet.http.HttpServlet.service ("

if [ $COUNTER -eq 10 ]; then

echo "All sample errors reported."




When the script finishes generating all of the errors, it prints the following line:

All sample errors reported.

Check your email for a message from "Stackdriver Notifications".

Generate error messages from a App Engine app

While the sample messages you generated from the scripts fully simulate error conditions in Error Reporting, if you want to generate errors from a real service running in your Cloud project, follow the steps in this section.

Posted on May 31, 2022

More by Plumb Edward

View profile