-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
IDN conversion failed (errors: IDNA_ERROR_EMPTY_LABEL) #2600
Comments
Same. Laravel 7.1.3, Guzzle 6.5.2. PHP 7.4.2. Error occurs when I attempt to save a related model from an observer method per a factory call. I can create a user using a standard factory call in Tinker (no error). And, I can record log info from the UserObserver creating or created methods fired from that factory call. But, if I try to save or change related models from an observer or a boot method, I get the IDNA translation error. |
I am receiving the same error with Guzzle 6.5.2, Laravel 6.17.1, PHP 7.3.8, while trying to run some unit tests: $response = $this->postJson('/ajax/jurisdiction-media', [
'name' => $name,
'url' => $url,
'user_id' => $user->id,
'jurisdiction_id' => $jurisdiction->id
]); |
I am currently facing a similar problem. I'm using guzzle version 6.5. Here is the error message: Any solution to help me? |
My current workaround is to define a conflict with I'd love to investigate more but i don't have time right now. I did a few tests but all worked correctly as expected:
|
I think i found the issue. The problem seems to be https://github.com/symfony/polyfill-intl-idn which defines that constant https://github.com/symfony/polyfill-intl-idn/blob/master/bootstrap.php#L37 if IDNA_DEFAULT is not present. |
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)
|
Same problem with TYPO3 9.5.15 and guzzle 6.5.2 also on a Mittwald hosting!
|
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. |
@Wei102193 That did it for me. I made the following change to me
|
that actually worked for me thanks
|
I think this could be fixed by #2626. |
I encountered the same issue. It turns out I had some hidden ancii characters in my API host string in my .env file. Simply retyping the string instead of copy-pasting solved the issue for me. |
Can you explain to me how it worked? I have the same error |
Facing the same problem SDK : Using version ^3.137 for aws/aws-sdk-php
$s3Client = new S3Client([ What could be the issue? |
FWIW, today the update to |
Try to the latest changes in the 6.5 branch. Will that fix this issue? |
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:
|
Guzzle version(s) affected:"guzzlehttp/guzzle": "^6.3",
PHP version: x.y.z (hint:
php --version
): 7.4.2cURL version: x.y.z (hint:
php -i | grep cURL
): 7.68.0Description
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.
The text was updated successfully, but these errors were encountered: