guzzle: IDN conversion failed (errors: IDNA_ERROR_EMPTY_LABEL)
Guzzle version(s) affected:“guzzlehttp/guzzle”: “^6.3”,
PHP version: x.y.z (hint: php --version
): 7.4.2
cURL version: x.y.z (hint: php -i | grep cURL
): 7.68.0
Description
Error message when installing Scout (Searchable) and Algolia. The error message is “IDN conversion failed (errors: IDNA_ERROR_EMPTY_LABEL) at vendor/guzzlehttp/guzzle/src/functions.php:384.” Saw on Stack Overflow that it works to revert to Guzzle 6.2, but know you prefer we use the most recently updated/stable version.
Additional context
Using Laravel 7.1.3.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (3 by maintainers)
I am facing this issue to. I found #2448 which looks similar. I updated to guzzle 6.5.2 but I am still facing this issue. (Problem occurs only on Mittwald servers)
@Wei102193 That did it for me. I made the following change to me
.env
file within my CI integration and it worked:In my case, It was because of “Laravel\Scout\Searchable”. If you haven’t set up Scout properly or you don’t need them, remove trait Searchable from your model might fix this problem.
Sorry for the delay. This worked for me as it appears the issue was due to incompatibilities between versions (Laravel Scout/Algolia/Guzzle) and not Guzzle itself:
Same problem with TYPO3 9.5.15 and guzzle 6.5.2 also on a Mittwald hosting!