# Troubleshooting

Encountering an issue? No worries! Here are some quick fixes and tips to keep you building smoothly.

## ❗Error: “Preview” displays a code block

If the “Preview” displays a code block, simply copy the code and paste it into the prompt input field to proceed.

<figure><img src="https://1419497930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIHS0V82xwBTAv4ZzHMD9%2Fuploads%2FqDcRGjU8IFtmjtHnRBIW%2Fimage%20(14).png?alt=media&#x26;token=66e544ba-a3a3-46d9-a46b-20e07cb44877" alt=""><figcaption><p>"Preview" Tab Displaying a Code Box Error</p></figcaption></figure>

🔁 If the issue keeps happening, try reverting to the latest version that worked. This can often restore functionality and help identify what might be causing the problem.

<figure><img src="https://1419497930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIHS0V82xwBTAv4ZzHMD9%2Fuploads%2FP4Cl0sP9xhT0vXLBC73P%2FError-revert.jpg?alt=media&#x26;token=eb2b283f-a4bb-4933-bd53-af3de2550175" alt=""><figcaption><p>"Revert to this message" Button</p></figcaption></figure>

***

## ❗Error: “⚠️ Preview Error”

If you receive the following “⚠️ Preview Error” message, select “Ask Aurelia” so she can analyze and resolve the error.

<div data-full-width="false"><figure><img src="https://1419497930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIHS0V82xwBTAv4ZzHMD9%2Fuploads%2Fjf9dy2ydAObX1pr1PDda%2FError.png?alt=media&#x26;token=50ebb0ed-2260-4794-872b-4146d3e6256f" alt=""><figcaption><p>Preview Error with No Preview</p></figcaption></figure></div>

<figure><img src="https://1419497930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIHS0V82xwBTAv4ZzHMD9%2Fuploads%2F2beARkyz4EZVA4ko5Vmn%2Ferror2.png?alt=media&#x26;token=d48dab90-0b9e-4f75-8910-087e047374ae" alt=""><figcaption><p>"Ask Aurelia" Button</p></figcaption></figure>

***

## ❗Error: “Enter FlexSmart API Key”

If you receive the following “Enter FlexSmart API Key”, you will need to locate the API key in FlexSmart to continue. We’ll show you how.

<div data-full-width="false"><figure><img src="https://1419497930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIHS0V82xwBTAv4ZzHMD9%2Fuploads%2FIZtRTAyclRoDmcgsi3yM%2FScreenshot%202025-04-15%20121534.png?alt=media&#x26;token=ce27c3de-7194-400c-bfaa-de33d8622d0b" alt=""><figcaption><p>"Enter FlexSmart API Key" Prompt Field</p></figcaption></figure></div>

#### **How you obtain FlexSmart’s API key:**

1️⃣From your [**FlexSmart dashboard**](https://academy.flexsmart.io/) in a separate window, navigate to the top right corner, click on the three dots next to your name, and select “**Developer**”.

2️⃣If you already see an API key, skip to the next step. If not, click on the button “**Generate API Key**”

3️⃣ Once you see the API key, click on the **copy icon** next to it and then paste this key in the "Enter FlexSmart API Key" prompt field on Aurelia.

<div data-full-width="false"><figure><img src="https://1419497930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIHS0V82xwBTAv4ZzHMD9%2Fuploads%2FgCkgGmxpblzhjqCE2m9f%2FScreenshot%202025-04-15%20122853.png?alt=media&#x26;token=7a7c07a1-7c1d-4508-8522-ef914adcfe70" alt=""><figcaption></figcaption></figure></div>

🔥 **Pro Tip:** If you run into issues not listed here, let us know in #🛠-[support](https://discord.com/channels/939202745460723753/1344750233514545294) on Discord!
