kylon / Sharedown

Electron application to download Sharepoint videos (especially meant for students)
GNU General Public License v3.0
349 stars 40 forks source link

Session closed. Most likely the page has been closed. #64

Closed closmarfer closed 1 year ago

closmarfer commented 1 year ago

This error appears in logs over and over when I start the download and the application keeps loading without do nothing:

_waitForVideoPlayer: ignore:
Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.

_waitForVideoPlayer: ignore:
Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.

_waitForVideoPlayer: ignore:
Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.

Version: Sharedown 5.2.2 MacOS Ventura 13.0.1

kylon commented 1 year ago

arm mac? (m1, m2)

closmarfer commented 1 year ago

No, is Intel. Thanks

kylon commented 1 year ago

anything else in logs? what happens to the chrome window?

closmarfer commented 1 year ago

The Chromium window is closed (I use the builtin Chromium). I send you some more logs:

startDownload: start

startDownload: valid data: true

runPuppeteerGetVideoData: goto https://xxx.sharepoint.com/:v:/r/sites/XXXXXXX.mp4?csf=1&web=1&e=7vbBSz

_sharepointLogin: start login procedure

_waitForVideoPlayer: ignore:
Execution context was destroyed, most likely because of a navigation.

_waitForVideoPlayer: ignore:
Execution context was destroyed, most likely because of a navigation.

_waitForVideoPlayer: ignore:
Protocol error (Runtime.callFunctionOn): Target closed.

_waitForVideoPlayer: ignore:
Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.

_waitForVideoPlayer: ignore:
Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.

_waitForVideoPlayer: ignore:
Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.

etc. etc.
kylon commented 1 year ago

are you closing chrome or it quits after login?

probably an issue caused by your login process try to login, if it gets stuck at video page, press F5 to refresh and wait, it should work

closmarfer commented 1 year ago

No, I don't close the page. When I insert user and pass the page redirect to the video, it is showed for a second and the Chromium window is closed automatically and the Sharedown window keeps loading while the log is registered over and over.

I have tried with the Chrome executable and the FFmpeg downloader and it is working. Thanks!