-
Notifications
You must be signed in to change notification settings - Fork 46
Unable to retrieve metadata from link #49
Comments
MORE INFO
|
Could you provide a video id that's causing this? |
Nearly all video I encountered have this problem. |
Hello, I have the same problem with a real device Huawei P20 Lite, Android 9, react-native-ytdl 3.4.2, react-native 0.63.3 I tested other real devices Samsung Galaxy S8 android 9, iPhone 8 iOS 12, I don't have the problem on these devices. |
This bug is from node-ytdl-core (fent/node-ytdl-core#751) and it already fixed. So, update node-ytdl-core version is the best way to fix it |
Yes I think this port just needs to be rebased to latest node-ytdl-core |
Should be fixed in the latest version. If not, try passing a high ytdl.getInfo(YOUR_URL, {
requestOptions: { maxRetries: 100 }
}); You are experiencing a network error, the above option will retry failed functions until they succeed. Note: You might want to keep |
Unfortunatly it's still the same for me with the last version and until 100 retries :/ |
I didn't find the origin of my problem but i solved it by "homemade" sources modification. I discovered it exists two main methods to get YT video informations:
The first method doesn't work on some devices for me, I don't know why (response blob is empty). |
Hey, @Sanorf can you please share your modified files? |
@AbelTesfaye does this suggestion sound good? Can we have this please? |
The above suggestion was implemented on the latest node-ytdl-core. I've rebased this library so it should be available now |
When I tried to use the
ytdl.getInfo(url).then(res=>console.log(res))
it just output a json string
)]}' {"reload":"now"} [Error: Unable to retrieve video metadata]
When I dig deep into the source code, I think it is probably the problem of miniget. the miniget method GET request simply cannot return anything of the video metadata But fixing it is already out of my ability.
test on
react-native-ytdl 4.0.2
IOS 14.2
react native 0.63.0
The text was updated successfully, but these errors were encountered: