ytdl-js / react-native-ytdl

A YouTube downloader for React Native
121 stars 46 forks source link

Keep getting TypeError: undefined is not an object (evaluating 'info.player_response.storyboards') #87

Closed miha53cevic closed 3 years ago

miha53cevic commented 3 years ago

Trying to use ytdl(url) or ytdl.getBasicInfo() both return the same thing.

full error:

 WARN  Possible Unhandled Promise Rejection (id: 1):
TypeError: undefined is not an object (evaluating 'info.player_response.storyboards')
getStoryboards@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:117895:37
_callee$@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:116494:91
tryCatch@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:7714:23
invoke@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:7887:32
tryCatch@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:7714:23
invoke@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:7787:30
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:7797:21
tryCallOne@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:28583:16
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:28684:27
_callTimer@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:29100:17
_callImmediatesPass@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:29139:17
callImmediates@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:29357:33
__callImmediates@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:3236:35
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:3014:34
__guard@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:3219:15
flushedQueue@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.yourmusic&modulesOnly=false&runModule=true:3013:21
flushedQueue@[native code]
invokeCallbackAndReturnFlushedQueue@[native code]
du5rte commented 3 years ago

Experiencing the same

Darguima commented 3 years ago

This problem has been resolved in the latest version v4.8.3

Just need to reinstall the package

yarn upgrade react-native-ytdl@latest

or

npm update react-native-ytdl@latest