Como fazer o debug de functions usando a GraphQL API
Você pode utilizar o processo de debugging para identificar erros em suas functions. Uma das opções para debugging é utilizar a GraphQL API.
Para isso, siga os passos descritos no guia Como rodar requisições da GraphQL no Postman utilizando a URL https://api.azionapi.net/events/graphql.
Depois, na caixa de código do Postman da requisição de GraphQL, adicione a seguinte query, modificando o tsRange de acordo com o intervalo de tempo que você quer utilizar:
query ConsoleLog {  cellsConsoleEvents(    limit: 10,    filter: {      tsRange: {begin:"2023-02-01T10:10:10", end:"2023-06-15T10:10:10"}    }    orderBy: [ts_ASC]  )  {    ts    solutionId    configurationId    functionId    id    lineSource    level    line  }}Envie sua requisição. Você receberá uma resposta semelhante a:
{    "data": {        "cellsConsoleEvents": [            {                "ts": "2023-06-12T17:09:54Z",                "solutionId": "1531300483",                "configurationId": "1681964762",                "functionId": "9483",                "id": "fa498cd9-cbep-4382-8bbb-32b029fe7411",                "lineSource": "RUNTIME",                "level": "ERROR",                "line": "TypeError: Object not found"            },            {                "ts": "2023-06-12T17:09:54Z",                "solutionId": "1531300483",                "configurationId": "1681964762",                "functionId": "9483",                "id": "fa498cd9-cbep-4382-8bbb-32b029fe7411",                "lineSource": "RUNTIME",                "level": "ERROR",                "line": "TypeError: Object not found"            },            {                "ts": "2023-06-12T17:09:54Z",                "solutionId": "1531300483",                "configurationId": "1681964762",                "functionId": "9483",                "id": "fa498cd9-cbep-4382-8bbb-32b029fe7411",                "lineSource": "RUNTIME",                "level": "ERROR",                "line": "    at async mainFetch (ext:cells_fetch/26_fetch.js:266:12)"            }        ]    }