Report an individual error event.

This endpoint accepts either an OAuth token, or an API key for authentication. To use an API key, append it to the URL as the value of a key parameter. For example:


HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID.

Example: // projects/my-project-123.

Request body

The request body contains an instance of ReportedErrorEvent.

Response body

If successful, the response body will be empty.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.


An error event which is reported to the Error Reporting system.

JSON representation
  "eventTime": string,
  "serviceContext": {
    object (ServiceContext)
  "message": string,
  "context": {
    object (ErrorContext)

string (Timestamp format)

Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".


object (ServiceContext)

Required. The service context in which this error has occurred.



Required. The error message. If no context.reportLocation is provided, the message must contain a header (typically consisting of the exception type name and an error message) and an exception stack trace in one of the supported programming languages and formats. Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. Supported stack trace formats are:


object (ErrorContext)

Optional. A description of the context in which the error occurred.

Try it!

¿Te ha resultado útil esta página? Enviar comentarios:

Enviar comentarios sobre...

Stackdriver Error Reporting
Si necesitas ayuda, visita nuestra página de asistencia.