The Issues API

You can access the latest errors/exceptions, slow sqls and deprecations that occurred in a project by using the Issues API. It is the equivalent of the "Issues" screen list in the Tideways user interface.

Requirements: You need an API access token with the issues scope for this endpoint.

You can access the issues from the following endpoint:

https://app.tideways.io/apps/api/{organization}/{application}/issues

Fill out {organization} and {application} placeholders above, with the relevant details.

Here is an example response including 2 errors:

{
  "criteria": {
    "application": "{application}",
    "environment": "production",
    "organization": "{organization}",
    "page": 1,
    "range": {
      "endDate": "2017-12-13 09:19:25",
      "minutes": 60,
      "startDate": "2017-12-13 08:19:26"
    },
    "service": "web",
    "status": "new"
  },
  "issues": [
    {
      "context": {
        "sapi": "cli"
      },
      "environments": [
        "production"
      ],
      "exceptionType": "Symfony\\Component\\Debug\\Exception\\ContextErrorException",
      "firstOccrured": "2017-08-09 07:09:23",
      "id": "1-cb6880dddbfa3e5d94bdb3df193609c8",
      "lastMessage": "Warning: Error while sending QUERY packet.
      PID=24092
      ",
      "lastOccurred": "2017-12-06 22:05:19",
      "lastStackTrace": [
        {
          "file": "/var/www/xhprof/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php",
          "function": "...",
          "line": 57
        },
        {
          "file": "/var/www/xhprof/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php",
          "function": "Doctrine\\DBAL\\Driver\\PDOConnection->exec(string)",
          "line": 1044
        }
      ],
      "occurrences": 3,
      "occurrencesSinceLastRelease": 3,
      "source": "Driver/PDOConnection.php:57",
      "status": "open",
      "transactions": [
        "Transaction1",
        "Transaction2"
      ],
      "type": "Symfony\\Component\\Debug\\Exception\\ContextErrorException",
      "issueType": "error"
    },
    {
      "context": {
        "query": "",
        "sapi": "cli"
      },
      "environments": [
        "production"
      ],
      "exceptionType": "PhpAllowedMemorySizeReachedError",
      "firstOccurred": "2017-07-17 12:28:52",
      "id": "1-cff6f577ede14445c911c558e3d07b68",
      "lastMessage": "Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes)",
      "lastOccurred": "2017-12-06 22:05:09",
      "lastStackTrace": [],
      "occurrences": 8,
      "occurrencesSinceLastRelease": 8,
      "source": "php:memory",
      "status": "open",
      "transactions": [
        "web_profiler.controller.profiler:panelAction"
      ],
      "type": "PhpAllowedMemorySizeReachedError",
      "issueType": "error"
    }
    }
  }

You can filter the result using three query parameters:

status

Defaults to open but can also be new, resolved, not_error, or ignored.

page

Defaults to 1 and can be used for pagination.

issueType

Defaults to error but can also be slowsql or deprecated.

Still need help? Email [email protected]