> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gelato.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Track & Debug Requests

<Check>
  We’ve introduced [UI Logs](https://app.gelato.cloud/logs) for Gasless SDK requests!

  * You can now track all your requests directly in the dashboard, and easily **debug failed requests** using built-in Tenderly simulations.
  * Additionally, you can view details such as **response time, request body, response body**, and more.
</Check>

## Debugging Failed Requests Using UI Logs

You can use the **UI logs** to debug failed requests directly from the Gelato app. These logs are available in the [Paymaster & Bundler](https://app.gelato.cloud/logs) section of the dashboard.

<img src="https://mintcdn.com/gelato-6540eeb1/KIoTpU4fU3AjZhSk/images/smart-wallet-logs.png?fit=max&auto=format&n=KIoTpU4fU3AjZhSk&q=85&s=0b4423685648ef67534d5f397dc6f68c" alt="Gasless SDK Logs" width="2928" height="1688" data-path="images/smart-wallet-logs.png" />

<Note>
  This debug feature is currently available only for `wallet_preparedCalls` endpoint of Gasless SDK.
</Note>

### Steps to Debug

1. Go to the **logs** section and locate your failed `wallet_preparedCalls` request.
2. On the right side of the log entry, click the **Debug** button.
3. A new option, **View Debug**, will appear. Click it.
4. This will open a **Tenderly simulation**, which you can use to analyze and debug the failed request.

## Using Status API

In any of the payment methods, when using `Gasless SDK`, if you call the `wallet_sendPreparedCalls` API endpoint, the returned `Id` can also be used to track the status of the request through Gelato’s infrastructure like this:

```bash theme={null}
curl -X GET https://api.gelato.digital/tasks/status/{Id}
```

Additionally, you can debug the request using the `status` API on Tenderly like this:
You can make use of the debug endpoint by adding the following parameters:

* `tenderlyUsername`
* `tenderlyProjectName`

The request URL should look like this:

```bash theme={null}
curl -X GET https://api.gelato.digital/tasks/status/{Id}/debug?tenderlyUsername={yourUserName}&tenderlyProjectName={yourProjectName}
```

After running the above command, you can use the link of tenderly simulation in the response to debug the UserOperation.

## Using WebSocket API

Additionally, you can also use the `WebSocket` API to subscribe to the status updates of the request like this:

You can interact with the websocket API directly by connecting to this endpoint:

```
wss://api.gelato.digital/tasks/ws/status
```

Once connected, you can subscribe to updates using Id of your submitted requests by sending messages like this:

```json theme={null}
{
    "action": "subscribe",
    "taskId": "0x..." // paste your Id here
}
```

To unsubscribe from updates:

```json theme={null}
{
    "action": "unsubscribe",
    "taskId": "0x..." // paste your Id here
}
```
