XB AI: 500 Error Is Not Handled Properly

Created on 22 August 2025, 7 days ago

Overview

500 errors are not getting caught.

The website encountered an unexpected error. Try again later.

Drupal\ai\Exception\AiRequestErrorException: Error invoking model response: cURL error 28: Operation timed out after 60005 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://ai-provider/chat/completions in Drupal\ai\Plugin\ProviderProxy->wrapperCall() (line 241 of modules/contrib/ai/src/Plugin/ProviderProxy.php).
Drupal\ai\Plugin\ProviderProxy->__call() (Line: 460)
Drupal\ai_agents\PluginBase\AiAgentEntityWrapper->determineSolvability() (Line: 175)
Drupal\ai_agents\Plugin\AiFunctionCall\AiAgentWrapper->execute() (Line: 935)
Drupal\ai_agents\PluginBase\AiAgentEntityWrapper->executeTool() (Line: 423)
Drupal\ai_agents\PluginBase\AiAgentEntityWrapper->determineSolvability() (Line: 486)
Drupal\ai_agents\PluginBase\AiAgentEntityWrapper->determineSolvability() (Line: 189)
Drupal\xb_ai\Controller\XbBuilder->render()

Proposed resolution

Handle exceptions and log them

User interface changes

🐛 Bug report
Status

Needs work

Version

1.0

Component

AI

Created by

🇮🇳India narendraR Jaipur, India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024