-
Notifications
You must be signed in to change notification settings - Fork 438
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
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'substring' of undefined #6
Comments
I ran into the same issue, and it took me hours to figure out what the issue was. Thanks to this page I simply added another argument '--no-sandbox' next to '--disable-dev-shm-usage'. So, if anyone is like me...and has no idea what to do. I went into destreamer.ts, and scrolled down to the section between lines 47-52 (where it says "async function rentVideoForLater.....". From here, you simply add the argument I mentioned above.
Thank you so much for creating this...I just downloaded my first video from Stream, and it works perfectly. Beautiful job. |
Really happy you tracked this down and it now works for you. We should probably make |
On windows, after adding this flag and building it again, the error/warning is still displayed but does not terminate running. Is this expected? I don't think the download is progressing. I can see the sandbox change reflect in the transpiled file as well. |
It opens Chromium and it's impossible to download the video. How to solve this issue? |
@AndreaLonghitano Can you provide the logs please? |
Closing due to inactivity, please try out the new code (git pull and build), we improved a lot of the logic. |
I always hit the following errors:
Transpiling TypeScript to JavaScript...
TSFILE: C:/StoneTemp/destreamer-dev/BrowserTests.js
TSFILE: C:/StoneTemp/destreamer-dev/destreamer.js
Using youtube-dl version 2019.11.22
Using ffmpeg version git-2019-11-26-59d264b Copyright (c) 2000-2019 the FFmpeg developers
Launching headless Chrome to perform the OpenID Connect dance...
Navigating to STS login page...
We are logged in. Sorry, i mean "you".
Got cookie. Consuming cookie...
Looking up AMS stream locator...
Video title is: Training
At this point Chrome's job is done, shutting it down...
Constructing HLS URL...
(node:5584) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'substring' of undefined
at rentVideoForLater (C:\StoneTemp\destreamer-dev\destreamer.js:83:27)
(node:5584) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5584) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The text was updated successfully, but these errors were encountered: