Skip to content

[HttpClient] Undefined index: url #35779

@stevro

Description

@stevro

Symfony version(s) affected: 4.4.4

Description
When using a scoped http client the profiler collector throws an undefined index exception.

$this->paymentAPI->request('POST', 'new_payment', [
'json' => [ ... ]
]);

Error trace

ErrorException:
Notice: Undefined index: url

  at /home/vagrant/code/...../vendor/symfony/http-client/DataCollector/HttpClientDataCollector.php:123

Possible Solution
Same fix as in #35458 should be applied

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions