litellm - 💡(How to fix) Fix 我使用litellm 启动时报错 可以检查下原因吗? [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#25626Fetched 2026-04-14 05:38:36
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Timeline (top)
commented ×1labeled ×1

Error Message

LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. WARNING [Agent] ❌ Result failed 1/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. WARNING [Agent] ❌ Result failed 2/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. WARNING [Agent] ❌ Result failed 3/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. WARNING [Agent] ❌ Result failed 4/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. WARNING [Agent] ❌ Result failed 5/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. LiteLLM.Info: If you need to debug this error, use litellm._turn_on_debug()'. ERROR [Agent] ❌ Result failed 6/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times

RAW_BUFFERClick to expand / collapse

(browser-use) PS D:\Project\AI-Projects\browser-use\examples\getting_started> python.exe .\01_basic_search.py INFO [service] Using anonymized telemetry, see https://docs.browser-use.com/development/monitoring/telemetry. INFO [Agent] 🎯 Task: Search Google for 'what is browser automation' and tell me the top 3 results INFO [Agent] Starting a browser-use agent with version 0.12.6, with provider=azure and model=azure/gpt-5.2 INFO [Agent]

INFO [Agent] 📍 Step 1: 19:03:22 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:25 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:25 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:26 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

WARNING [Agent] ❌ Result failed 1/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times INFO [Agent]

INFO [Agent] 📍 Step 2: 19:03:26 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:27 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:27 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:28 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

WARNING [Agent] ❌ Result failed 2/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times INFO [Agent]

INFO [Agent] 📍 Step 3: 19:03:28 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:29 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:29 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:29 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

WARNING [Agent] ❌ Result failed 3/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times INFO [Agent]

INFO [Agent] 📍 Step 4: 19:03:30 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:30 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:31 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:31 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

WARNING [Agent] ❌ Result failed 4/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times INFO [Agent]

INFO [Agent] 📍 Step 5: INFO [Agent] 📋 Exploration nudge injected after 5 steps without a plan 19:03:31 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:32 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:32 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:33 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

WARNING [Agent] ❌ Result failed 5/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times INFO [Agent]

INFO [Agent] 📍 Step 6: INFO [Agent] 📋 Exploration nudge injected after 6 steps without a plan INFO [Agent] 🔁 Loop detection nudge injected (repetition=0, stagnation=5) 19:03:33 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:33 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:33 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

19:03:34 - LiteLLM:INFO: utils.py:4004 - LiteLLM completion() model= gpt-5.2; provider = azure INFO [LiteLLM] LiteLLM completion() model= gpt-5.2; provider = azure

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

ERROR [Agent] ❌ Result failed 6/6 times: litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} LiteLLM Retried: 3 times ERROR [Agent] ❌ Stopping due to 5 consecutive failures INFO [Agent] INFO [Agent] Did the Agent not work as expected? Let us fix this! INFO [Agent] Open a short issue on GitHub: https://github.com/browser-use/browser-use/issues INFO [BrowserSession] 📢 on_BrowserStopEvent - Calling reset() (force=True, keep_alive=None) INFO [BrowserSession] [SessionManager] Cleared all owned data (targets, sessions, mappings) INFO [BrowserSession] ✅ Browser session reset complete INFO [BrowserSession] ✅ Browser session reset complete

extent analysis

TL;DR

The issue is likely due to an Azure API error with a 404 status code, indicating that the requested resource was not found, and can be debugged by enabling debug mode using litellm._turn_on_debug().

Guidance

  • The error message litellm.APIError: AzureException APIError - Error code: 404 - {'detail': 'Not Found'} suggests that the Azure API is returning a 404 status code, indicating that the requested resource was not found.
  • Enabling debug mode using litellm._turn_on_debug() may provide more detailed information about the error and help with debugging.
  • The fact that the error occurs consistently across multiple steps and retries suggests that the issue may be related to the Azure API or the request being made, rather than a transient error.
  • Checking the Azure API documentation and ensuring that the request is correctly formatted and authenticated may help resolve the issue.

Example

No code example is provided as the issue is related to an external API error and not a code-specific issue.

Notes

The issue may be related to a temporary outage or issue with the Azure API, and checking the Azure status page or support resources may provide more information. Additionally, the litellm library may have additional logging or debugging capabilities that can be enabled to provide more detailed information about the error.

Recommendation

Apply workaround: Enable debug mode using litellm._turn_on_debug() to gather more information about the error and attempt to resolve the issue by checking the Azure API documentation and ensuring that the request is correctly formatted and authenticated.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING