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

# Error Logs

> What broke, and how to repair it.

Sometimes a block cannot do its job. For example, your bot tries to give a role, but its own role is too low. When that happens, DogeBot writes it down in **Error Logs**: what broke and how to repair it.

## What each error shows

* **Who** ran it, **where** and **when**.
* **Values when it ran**: what your variables held at that moment.
* **Steps to repair**: what to change to fix it.

## Fix an error

**1. Open Error Logs**

Press **Error Logs** in the sidebar. You can also open it from the left rail inside the builder.

**2. Read the error**

Look at **Steps to repair** and **Values when it ran**.

**3. Open the block**

Press **Open the block**. The builder opens with the broken block, so you can fix it.

**4. Mark it repaired**

Save your fix, then press **Mark repaired**. When the block runs fine again, DogeBot shows **Working again** by itself.

## The buttons

| Button | What it does |
| - | - |
| **Open the block** | Opens the builder at the block that broke. |
| **Snooze** | Hides this error for a while. |
| **Clear** | Removes this error from the list. |
| **Clear all** | Removes every error from the list. |
| **Mark repaired** | Tells DogeBot you fixed it. |

## Repair notes

**Repair notes** are private tips sent to the owner and collaborators on Discord when something breaks. You can switch them off.

## Common errors and fixes

| Error | Fix |
| - | - |
| The bot cannot give a role | In Discord, go to **Server Settings**, then **Roles**, and drag your bot's role **above** the role it should give. |
| The bot cannot send in a channel | Give the bot permission to **View Channel** and **Send Messages** in that channel. |
| A message is empty | Every message needs some text, an embed or a picture. |

More fixes: [Role and permission errors](/help/role-and-permission-errors).

## How long errors are kept

| Plan | Kept for | Runs kept per error |
| - | - | - |
| Free | 7 days | The last run |
| Premium | 30 days | The last 3 runs |

> [!NOTE]
>
> Your **Secrets** are never shown in Error Logs.

> [!TIP]
>
> Want to stop errors before they happen? See [Saving and fixing problems](/building-with-blocks/saving-and-fixing-problems).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.