Skip to content
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

Expiration of access token #239

Closed
vleveris opened this issue Oct 2, 2020 · 13 comments
Closed

Expiration of access token #239

vleveris opened this issue Oct 2, 2020 · 13 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@vleveris
Copy link

vleveris commented Oct 2, 2020

Hello.
I have an issue with access token expiration.
It seems that access token does not get refreshed. If I run destreamer with an argument of video URLs file, it crashes in 1 hour with the following error message:
[WARNING] Got HTTP code 401. Retrying request...

[VERBOSE] Here is the error message:
'

[ERROR] Error: Request failed with status code 401
at createError (c:\Users\vytau\Downloads\destreamer\node_modules\axios\lib\core\createError.js:16:15)
at settle (c:\Users\vytau\Downloads\destreamer\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (c:\Users\vytau\Downloads\destreamer\node_modules\axios\lib\adapters\http.js:244:11)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)

[FATAL ERROR] Unhandled error or uncaught exception!
Please check your download directory/directories and try again.
If this keep happening please report it on github "https://github.com/snobu/destreamer/issues"

As I understand from the source, application tries to refresh session after finishing each video download and convert process, but perhaps it failes.

@lukaarma
Copy link
Collaborator

lukaarma commented Oct 2, 2020

Are you using the -k option when running Destreamer? If so did you click yes when asked to 'remember the credential'?

@lukaarma lukaarma added the question Further information is requested label Oct 2, 2020
@vleveris
Copy link
Author

vleveris commented Oct 2, 2020 via email

@lukaarma
Copy link
Collaborator

lukaarma commented Oct 2, 2020

After each download did a chromium window pop up for a couple of seconds or after the first login no windows were spawned?

@vleveris
Copy link
Author

vleveris commented Oct 2, 2020 via email

@lukaarma
Copy link
Collaborator

lukaarma commented Oct 2, 2020

Mhhh ok I'll take a look and I'll let you know, but since I have little free time it will take time

@lukaarma lukaarma added the bug Something isn't working label Oct 2, 2020
@lukaarma
Copy link
Collaborator

lukaarma commented Oct 2, 2020

Oh and just to make sure, you are running the latest commits on master branch?

@vleveris
Copy link
Author

vleveris commented Oct 2, 2020 via email

@lukaarma
Copy link
Collaborator

lukaarma commented Oct 3, 2020

Could you please run it adding the --verbose flag and then copy here the output?

@vleveris
Copy link
Author

vleveris commented Oct 3, 2020

destreamer_output.txt

@lukaarma
Copy link
Collaborator

lukaarma commented Oct 4, 2020

Thanks, found the bug

We have to pass the new session to the API class, fixing it tomorrow

@lukaarma lukaarma self-assigned this Oct 4, 2020
@lukaarma
Copy link
Collaborator

lukaarma commented Oct 5, 2020

You can work around this bug for now by adding the '-x' option at launch

@vleveris
Copy link
Author

vleveris commented Oct 5, 2020 via email

@lukaarma
Copy link
Collaborator

lukaarma commented Oct 6, 2020

closing keep track of the bug in #244

@lukaarma lukaarma closed this as completed Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants