Graceful error handling when an AI Provider is not setup correctly
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3549312. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !923
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>On the search server setup page, the whole page goes WSOD if one of the providers is not setup correctly and doesn't handle errors correctly.</p>
<p>An example of this is the Gemini provider, when no key is setup.</p>
<p>We should not make it impossible to save any other type of Search API server, just because one provider is not setup correctly.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4>
<ul>
<li>Install the Gemini Provider.</li>
<li>Install the Search API and Search AI modules.</li>
<li>Go the the Search API page for creating a new server.</li>
</ul>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Make sure that it gracefully catches the provider error and still allows other types of Search API servers to be created.</p>
issue