[BUG] Token not set(compile problem) #65

Closed
opened 2021-05-05 20:46:19 +00:00 by STRAT4TR · 7 comments
STRAT4TR commented 2021-05-05 20:46:19 +00:00 (Migrated from github.com)

Getting this after compiling for windows

Node js 12.4.0

Getting this message after a successful authentication and getting the token but this message appears next, I can't download premium content since I keep getting token not set

** Main info: **
(node:6792) UnhandledPromiseRejectionWarning: Error: File or directory 'C:**\funimation-downloader-nx-master\config\token.yml' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.openSync (pkg/prelude/bootstrap.js:511:12)
at Object.writeFileSync (fs.js:1387:35)
at auth (C:\snapshot\funimation-downloader-nx-master\funi.js)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(Use funi --trace-warnings ... to show where the warning was created)
(node:6792) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:6792) [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.

Getting this after compiling for windows Node js 12.4.0 Getting this message after a successful authentication and getting the token but this message appears next, I can't download premium content since I keep getting token not set ** Main info: ** (node:6792) UnhandledPromiseRejectionWarning: Error: File or directory 'C:\**\funimation-downloader-nx-master\config\token.yml' was not included into executable at compilation stage. Please recompile adding it as asset or script. at error_ENOENT (pkg/prelude/bootstrap.js:446:17) at openFromSnapshot (pkg/prelude/bootstrap.js:487:29) at Object.openSync (pkg/prelude/bootstrap.js:511:12) at Object.writeFileSync (fs.js:1387:35) at auth (C:\snapshot\funimation-downloader-nx-master\funi.js) at processTicksAndRejections (internal/process/task_queues.js:97:5) (Use `funi --trace-warnings ...` to show where the warning was created) (node:6792) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:6792) [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.
izu-co commented 2021-05-05 20:59:48 +00:00 (Migrated from github.com)

Did you use the javascript version or the build?

If you use the build can you include a screenshot of the directory the funimation downloader is in?

Did you use the javascript version or the build? If you use the build can you include a screenshot of the directory the funimation downloader is in?
STRAT4TR commented 2021-05-05 21:10:32 +00:00 (Migrated from github.com)

Did you use the javascript version or the build?

If you use the build can you include a screenshot of the directory the funimation downloader is in?

Visual studio code, run build task -> npm: build-win64
I did download the code from this master branch, built after installing all dependencies
https://imgur.com/a/MG0b6Em

> Did you use the javascript version or the build? > > If you use the build can you include a screenshot of the directory the funimation downloader is in? Visual studio code, run build task -> npm: build-win64 I did download the code from this master branch, built after installing all dependencies https://imgur.com/a/MG0b6Em
izu-co commented 2021-05-05 21:36:54 +00:00 (Migrated from github.com)

I think there is a problem with the build. Can you try to use the normal version? (PS: there are some issues with the current code base. I tried to fix as much as possible in my pull request).

I think there is a problem with the build. Can you try to use the normal version? (PS: there are some issues with the current code base. I tried to fix as much as possible in my pull request).
STRAT4TR commented 2021-05-06 07:30:06 +00:00 (Migrated from github.com)

I think there is a problem with the build. Can you try to use the normal version? (PS: there are some issues with the current code base. I tried to fix as much as possible in my pull request).

I did compile with 14.5.0 got the same error while trying to log in
and this while trying to download a free show otherside picnic E1

(node:6656) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:121:11)
at Object.join (path.js:375:7)
at downloadStreams (C:\snapshot\funimation-downloader-nx-master\funi.js)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async getEpisode (C:\snapshot\funimation-downloader-nx-master\funi.js)
at async getShow (C:\snapshot\funimation-downloader-nx-master\funi.js)
(Use funi --trace-warnings ... to show where the warning was created)
(node:6656) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:6656) [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.
Press any key to continue . . .

> I think there is a problem with the build. Can you try to use the normal version? (PS: there are some issues with the current code base. I tried to fix as much as possible in my pull request). I did compile with 14.5.0 got the same error while trying to log in and this while trying to download a free show otherside picnic E1 (node:6656) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined at validateString (internal/validators.js:121:11) at Object.join (path.js:375:7) at downloadStreams (C:\snapshot\funimation-downloader-nx-master\funi.js) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async getEpisode (C:\snapshot\funimation-downloader-nx-master\funi.js) at async getShow (C:\snapshot\funimation-downloader-nx-master\funi.js) (Use `funi --trace-warnings ...` to show where the warning was created) (node:6656) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:6656) [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. Press any key to continue . . .
izu-co commented 2021-05-06 07:52:38 +00:00 (Migrated from github.com)

No I want you to not compile the code, but rather use the nodejs version.

No I want you to not compile the code, but rather use the nodejs version.
STRAT4TR commented 2021-05-07 15:08:02 +00:00 (Migrated from github.com)

No I want you to not compile the code, but rather use the nodejs version.

js version for this master branch:
login and token works fine, old streams work fine, new streams I get a 6000ms timeout and never downloads.

js version for your fork:
everything is working like a charm! both new streams and old streams.
If you could add support for multisubs that would be awesome.

I see 3 subs with the new streams this season :
english_full.vtt
spanishlatinamerica_full.vtt
portuguesebrazil_full.vtt

> No I want you to not compile the code, but rather use the nodejs version. js version for this master branch: login and token works fine, old streams work fine, new streams I get a 6000ms timeout and never downloads. js version for your fork: everything is working like a charm! both new streams and old streams. If you could add support for multisubs that would be awesome. I see 3 subs with the new streams this season : english_full.vtt spanishlatinamerica_full.vtt portuguesebrazil_full.vtt
izu-co commented 2021-05-10 14:55:26 +00:00 (Migrated from github.com)

Sorry for the late replay. Try my fork. It fixes a lot of issues about the new episodes.

Sorry for the late replay. Try my [fork](https://github.com/AnAppleforlife/funimation-downloader-nx). It fixes a lot of issues about the new episodes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Creepso/multi-downloader-nx#65
No description provided.