Problem

When going to the mistral provider settings page in Drupal 11.3 you get:

Drupal\ai\Exception\AiResponseErrorException: Something undefined was broken in the response from Mistral AI: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead. in Drupal\ai_provider_mistral\Plugin\AiProvider\MistralProvider->errorCatcher() (line 318 of modules/contrib/ai_provider_mistral/src/Plugin/AiProvider/MistralProvider.php).

CommentFileSizeAuthor
#6 mistral-4.diff1.01 KBfago
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fago created an issue. See original summary.

fago’s picture

Title: Drupal 11.3 compatibility: » Drupal 11.3 compatibility: AiResponseErrorException: Request::get() is deprecated
fago’s picture

Problem is not specific to Request::get(), but that generally various deprecation warnings are already enough to break it. That's a pre-existing issue with errors/warnings/notices in general, however in particular a problem with un-important things like deprecation warnings.

I'd propose to ignore deprecation warnings for now and to take a closer look at a better API-library first before investing more time into this.

fago’s picture

Version: 1.1.x-dev » 1.0.x-dev

let's fix this in 1.0.x, 1.1.x is unreleased and can be used for new developments like changing the API package.

fago’s picture

Status: Active » Needs review
StatusFileSize
new1.01 KB

submitted MR. attaching a copy of it for usage with composer-patches.

petar_basic’s picture

Status: Needs review » Reviewed & tested by the community
fago’s picture

Assigned: Unassigned » fago

let's check test fails first.

fago’s picture

Assigned: fago » Unassigned

  • fago committed 0b0a8653 on 1.1.x
    fix: #3564465 fix AiResponseErrorException raising wrong exceptions due...
fago’s picture

Status: Reviewed & tested by the community » Fixed

Merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • fago committed fe0a2145 on 1.0.x
    fix: #3564465 fix AiResponseErrorException raising wrong exceptions due...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.