# Something When Wrong. Anna LLM sampling did not respond within 110s. Please try again

**URL:** <https://forum.anna.partners/t/something-when-wrong-anna-llm-sampling-did-not-respond-within-110s-please-try-again/265>\
**Category:** Developers\
**Created:** [August 27, 2026, 3:26am UTC](https://forum.anna.partners/t/something-when-wrong-anna-llm-sampling-did-not-respond-within-110s-please-try-again/265 "2026-08-27T03:26:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daviddprtma](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@daviddprtma](https://forum.anna.partners/u/daviddprtma)\
**Post date:** [August 27, 2026, 3:26am UTC](https://forum.anna.partners/t/something-when-wrong-anna-llm-sampling-did-not-respond-within-110s-please-try-again/265/1 "2026-08-27T03:26:47Z")

</div>

Hello. I try to build my action plans with anna app but when I try to run my app with anna-app dev, then after I wait for so long time the error appear as in the screenshot. even I try with the mock sampling using anna-app dev --mock-llm ./fixtures/sampling-mock.jsonl but both of them have the same error like as in the screenshot. please help me about my issue.

 ![image](https://canada1.discourse-cdn.com/flex033/uploads/anna/original/1X/1f1c5172359b7a5d38e6a71e076bbb8e81d18df0.jpeg)

---

<div class="post-metadata">

**Author:** ![daviddprtma](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@daviddprtma](https://forum.anna.partners/u/daviddprtma)\
**Post date:** [August 27, 2026, 4:05am UTC](https://forum.anna.partners/t/something-when-wrong-anna-llm-sampling-did-not-respond-within-110s-please-try-again/265/2 "2026-08-27T04:05:45Z")

</div>

and also when I use the OpenAI API key from anna cloud then I have the error 401 that said OpenAI API call failed: Error code: 401 - {‘error’: {‘message’: ‘Incorrect API key provided: sk-proj-\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*sbNo. You can find your API key at [https://platform.openai.com/account/api-keys.](https://platform.openai.com/account/api-keys.)’, ‘type’: ‘invalid\_request\_error’, ‘code’: ‘invalid\_api\_key’, ‘param’: None}, ‘status’: 401} . I tried to revoke the key and create a new one again but still no luck for me. Iam really confused and need help about this serious issue.

 ![image](https://canada1.discourse-cdn.com/flex033/uploads/anna/original/1X/1de75225e72648dea6eec41400bc0168062bb0d3.jpeg)

---

<div class="post-metadata">

**Author:** ![hunter](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.anna.partners/hunter/32/8_2.png) [@hunter](https://forum.anna.partners/u/hunter)\
**Post date:** [August 31, 2026, 6:39am UTC](https://forum.anna.partners/t/something-when-wrong-anna-llm-sampling-did-not-respond-within-110s-please-try-again/265/3 "2026-08-31T06:39:23Z")

</div>

Hi @daviddprtma! 👋 Welcome, and thanks for the detailed report with screenshots — that really helps! 💪

Good news: your setup is probably fine. The two errors you’re seeing actually point us to exactly where the problem is. Let me walk you through it 🕵

## 🔍 Clue 1: the 110s timeout message

The message _“Anna LLM sampling did not respond within 110s”_ doesn’t come from the Anna platform — none of our components (CLI, dev harness, SDK, or backend) use a 110s timeout or produce that text. It looks like it comes from **your app’s own frontend code** (a watchdog/timeout around your LLM call). That’s totally fine to have! But it means the _real_ error is happening somewhere underneath, and the UI is just reporting “I waited and nothing came back.”

## 🔍 Clue 2: `--mock-llm` shows the same error

This is the most useful clue you gave us! 🎯 The mock LLM bridge **never** times out — even if no fixture matches your request, it replies instantly with a canned response. So if your app still hangs for 110s under `--mock-llm`, that tells us the call that’s timing out **isn’t going through the Anna LLM surface at all** (`anna.llm.complete` in the iframe, or `sampling/createMessage` from an executa). The mock simply never sees it.

## 🔍 Clue 3: the OpenAI 401

The error format `Error code: 401 - {'error': {'code': 'invalid_api_key', ...}}` is the OpenAI SDK talking **directly to [api.openai.com](http://api.openai.com)**. Combined with clue 2, this strongly suggests your app (or its executa) has its own OpenAI client baked in, calling OpenAI directly with an `sk-proj-...` key.

One important thing to clear up: **Anna Cloud doesn’t issue OpenAI API keys** 🙅 — an Anna token/PAT will always get a 401 from OpenAI, no matter how many times you regenerate it. That’s why revoking and recreating didn’t help.

So the full chain is likely:

```auto
your code calls OpenAI directly → 401 (invalid key)
→ the error never propagates back to your UI
→ your 110s watchdog fires → "Something went wrong"

```

## ✅ The good news: you don’t need an OpenAI key at all!

Anna gives you LLM access built in — no keys, no billing setup on your side:

- **From your app’s frontend:** use `anna.llm.complete(...)` via the SDK
- **From an executa:** use the reverse-RPC `sampling/createMessage`
- **Offline development:** both of these are exactly what `--mock-llm <fixture>` intercepts, so your mock fixtures will start working the moment you switch over 🎉

## 🙏 To help us confirm

If you’d like us to double-check, please share:

1. The **terminal output** of `anna-app dev` when the error happens (the `[bridge]` lines will show the real exception from your executa)
2. A snippet of **how your app calls the LLM** (SDK call vs. your own HTTP/OpenAI client)
3. Your `manifest.json` (feel free to redact anything sensitive)

You’re very close — swap the direct OpenAI call for the built-in `anna.llm` API and I think everything (including your mock fixtures) will click into place. Keep building, and don’t hesitate to post follow-ups! 🚀✨
