Skip to content

RequestException message no longer contains body #57779

@RobertWeideKyos

Description

@RobertWeideKyos

Laravel Version

12.38.1

PHP Version

8.4.14

Database Driver & Version

No response

Description

SInce 12.38.1 (because of PR #57759) when using Http with retry to make a request that raises RequestException, the message of the exception only contains the status code, not the body.

Steps To Reproduce

Http::retry(3)->get('https://mock.httpstatus.io/418');

This used to return: HTTP request returned status code 418:\n418 I'm a Teapot.\n

Now it just returns: HTTP request returned status code 418

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions