-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Youtube embed fails with NetworkException #538
Comments
We have just encountered this same issue on an other project running a more traditional docker setup of nginx/php-fpm/mysql. I haven't seen anything weird in that docker configuration and it is a setup we've been running for years. It is the first project we're building from scratch in php 8.3, however when briefly testing this on a live project running 8.3 and there this problem doesn't arise. We going to test this project locally aswell to see whether this might be a docker/php8.3 related issue might be. |
Hello, has there been any progress with this issue? |
This error is caused because Or, if you want to ignore this error (because the libary works fine), it's possible to configure the Curl adapter to ignore it. More info in this issue: #355 |
Changing to pt-BR in curl worked here, but the YouTube description doesn't match the one in the video. It has generic text like this: "Enjoy the videos and music you love, upload and share original content with friends, family, and the world on YouTube." Can you tell me what this could be? |
I'm attempting to load the embedding data of a Youtube video but that results in a network exception, without an error message
Tracing this exception back it gets thrown in
\Embed\Http\CurlDispatcher::getResponse
by the checkthis statement is triggered by the fact that
curl_errno($this->curl);
returns the status code23
andcurl_error($this->curl);
returns an empty string. However if I callcurl_strerror(curl_errno($this->curl));
I do get an error message "Failed writing received data to disk/application".Output
Array ( [url] => https://www.youtube.com/watch?v=GFOaWkFP4JE [content_type] => text/html; charset=utf-8 [http_code] => 200 [header_size] => 1737 [request_size] => 0 [filetime] => -1 [ssl_verify_result] => 20 [redirect_count] => 0 [total_time] => 1.23017 [namelookup_time] => 0.029307 [connect_time] => 0.048797 [pretransfer_time] => 0.067591 [size_upload] => 0 [size_download] => 219883 [speed_download] => 178741 [speed_upload] => 0 [download_content_length] => -1 [upload_content_length] => 0 [starttransfer_time] => 0.125468 [redirect_time] => 0 [redirect_url] => [primary_ip] => 172.217.23.206 [certinfo] => Array ( )
)
array(3) {
["errno"]=>
int(23)
["error"]=>
string(0) ""
["strerror"]=>
string(48) "Failed writing received data to disk/application"
}
However when I remove that error check to force the response to be handled then everything looks fine, the response gets parsed correctly and I can create the proper embeds.
Response snippet
Doing the exact same call but using a vimeo video does return the expected result
therefore this seem to be a youtube specific issue.
We are running the default frankenphp docker container with php 8.3
PHP version information
Installed packages
The text was updated successfully, but these errors were encountered: