400 bad request not managed

Created on 22 August 2025, 26 days ago

Problem/Motivation

I have a rest web service that return 400 bad request when there is application error. Ex. mail is not in the right format.

Whe i try to execute call to web service in /admin/config/services/http-client-manager/api_services_yaml/loadProduct/http-config-request page i get white page with error.

GuzzleHttp\Command\Exception\CommandClientException: There was an error executing the updateUser command: Client error: `PUT http://rest_container:8083/clienti/501.00004` resulted in a `400 Bad Request` response: { "error": { "response-code": 400, "response-detail": "6001 - errore gestionale [cap CAP italiano errato ( (truncated...) in GuzzleHttp\Command\Exception\CommandException::fromPrevious() (line 56 of /var/www/html/vendor/guzzlehttp/command/src/Exception/CommandException.php).

Steps to reproduce

Create new command in /admin/config/services/http-client-manager/...
Excecute test

Proposed resolution

Catch exception and show error like success call.

🐛 Bug report
Status

Active

Version

11.0

Component

User interface

Created by

🇮🇹Italy trickfun

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

Comments & Activities

Production build 0.71.5 2024