Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[HttpClient] Undefined index: url #35779

Copy link
Copy link
Closed
@stevro

Description

@stevro
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.