# Troubleshooting

## Deployment

#### **I deployed a function, but the template doesn't appear on the explorer UI**

Check that you are connected with the wallet associated with the API key used to deploy the function.

***

## Execution

#### **My function should have executed, but I don’t see any execution on the explorer UI**

First, make sure you haven’t run out of credits.

If you have enough credits, review your function code as there might be an error in it. To verify that your function works as expected, test it under different scenarios using the [Mimic Protocol test library](/developers/tests.md).

#### **My function execution failed or didn’t produce the expected outputs**

If you’re using a smart account, ensure that the signer of the function configuration is the owner of that smart account.

If your function queries expect responses that are too large, or if the function produces too many intents, try batching them.

#### **My function execution succeeded and produced the expected outputs, but they were discarded**

There can be multiple reasons for this:

1. Check that the intent amount is the expected one, and ensure the user has enough balance.
2. If the user is an EOA, ensure the settler has sufficient token allowance.
3. If the user is a smart account, ensure the settler set in the smart account is the correct one.
4. Check that the smart contract addresses used in the function are correct for the current chain.
5. Try increasing the maximum fee. If the intent is a swap, try decreasing the expected minimum amount out.
6. If the intent is a call, the target contract might be reverting. Simulate the smart contract call using the target, data, and value shown in the intent detail on the explorer UI. You can use tools like [Tenderly](https://dashboard.tenderly.co/) to run the simulation.

{% hint style="info" %}
If you haven't found what you needed, you can contact us [here](/resources/contact.md).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mimic.fi/developers/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
