php-sdk icon indicating copy to clipboard operation
php-sdk copied to clipboard

[BUG] BlackfiredHttpClient does not support 'base_uri' specified in underlying HttpClientInterface

Open riki137 opened this issue 2 years ago • 1 comments

It seems that BlackfiredHttpClient does not account for 'base_uri' being present only in the default options of the underlying client that it's decorating, since it passes static::OPTIONS_DEFAULTS as default options and tries to create URL from that. This makes profiling requests that rely on 'base_uri' in underlying client impossible.

Our base URI is specified in RetryableHttpClient.

image

riki137 avatar Jun 07 '24 13:06 riki137

Hello, It should be fixed as of https://github.com/blackfireio/php-sdk/releases/tag/v2.5.2

Thanks for reporting!

romainneutron avatar Jun 12 '24 09:06 romainneutron