Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony HttpClient compatibility #329

Open
pvgnd opened this issue Nov 15, 2020 · 5 comments
Open

Symfony HttpClient compatibility #329

pvgnd opened this issue Nov 15, 2020 · 5 comments

Comments

@pvgnd
Copy link
Contributor

pvgnd commented Nov 15, 2020

php-vcr does not seems to work with Symfony HttpClient. Here is the error:
RuntimeException: Unexpected error, could not find curl_getinfo in response or errors

@pvgnd
Copy link
Contributor Author

pvgnd commented Nov 15, 2020

I added integration tests but any help would be appreciated to identify the issue preventing php-vcr to work with Symfony HttpClient

Ruin0x11 added a commit to Ruin0x11/popcorn-ru that referenced this issue Jun 18, 2021
This is because Symfony's client is incompatible with PHP-VCR.
php-vcr/php-vcr#329
@nicodemuz
Copy link
Contributor

Seems like this call in Symfony client is causing the error for me:
https://github.com/symfony/symfony/blob/6.1/src/Symfony/Component/HttpClient/Response/CommonResponseTrait.php#L143

@StephanMeijer
Copy link

On my end no single request is being captured using Symfony's HTTP Client

@pelletiermaxime
Copy link

Any chance that PRs #285 #286 #294 could be merged to support Symfony's http client ?

@pelletiermaxime
Copy link

Hmmm well, I quickly tried the patches and they didn't fix symfony's client for me. I'm just going to use guzzle as my client for my library tests for now as I don't have time to debug this :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants