Errors API

« API Overview

The Error resources allow you to retrieve information about the unhandled exception logs for an application.

Contents

List Error Logs

Retrieves a list of the latest unhandled exceptions for the application, in descending order by date. Item properties match the error detail response properties with the addition of the detail URL.

Request

GET /applications/:slug/errors

Response

Status: 200 OK

[{
   "commit_id" : "foo",
    "date" : "2012-03-05T15:01:11",
    "request_path" : "/",
    "message" : "An unhandled exception has occurred.",
    "exception" :
    {
        "stack_trace" : "at FooController.Show(Bar bar)",
        "message" : "Object reference not set to an instance of an object.",
        "type" : "System.NullReferenceException",
        "inner_exception" : null
    },
   "url" : "https://appharbor.com/applications/:application/errors/:id"
}]

Get Error Detail

Retrieve the details for a specific error.

Request

GET /applications/:slug/errors/:id

Response

Status: 200 OK

{
    "commit_id" : "foo",
    "date" : "2012-03-05T15:01:42",
    "request_path" : "/",
    "message" : "An unhandled exception has occurred.",
    "exception" :
    {
        "stack_trace" : "at FooController.Show(Bar bar)",
        "message" : "Object reference not set to an instance of an object.",
        "type" : "System.NullReferenceException",
        "inner_exception" : null
    }
}

Response Properties

commit_id The commit ID of the build that was deployed at the time of the exception.
date The UTC date and time the build was created in and ISO 8601 format.
request_path The URL path within the application that generated the unhandled exception.
exception.stack_trace The stack trace generated by the exception.
exception.message The message generated by the exception.
exception.type The type name of the exception generated.
exception.inner_exception If present, the inner exception with the same schema as the parent exception.

Back to overview