ReneR97 / domestika-downloader

Download full domestika courses
https://www.buymeacoffee.com/ReneR97
61 stars 15 forks source link

Help with code crash #48

Open Mr-ConQueso opened 1 month ago

Mr-ConQueso commented 1 month ago

I have successfully obtained the cookies, but when running the program I get the following error, which seems to be some kind of incorrect reading of the credentials or perhaps the credentials I set were wrong, but I cannot know this since I got them using the extension.

const access_token = regex_token.exec(decodeURI(_credentials_))[1];                                                                                                                    ^                                                                                                                                                                                TypeError: Cannot read properties of null (reading '1')                                                                     at Object.<anonymous> (C:\Users\Nacho\Documents\GitHub\domestika-downloader-main\index.js:36:64)                        at Module._compile (node:internal/modules/cjs/loader:1376:14)                                                           at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)                                                    at Module.load (node:internal/modules/cjs/loader:1207:32)                                                               at Module._load (node:internal/modules/cjs/loader:1023:12)                                                              at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)                                  at node:internal/main/run_main_module:28:49                                                                                                                                                                                                 Node.js v20.10.0
ReneR97 commented 1 month ago

Try getting the cookies this way, the extension sometimes does not work correctly for some reason: