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

Help with code crash #48

Open
Mr-ConQueso opened this issue Jul 15, 2024 · 1 comment
Open

Help with code crash #48

Mr-ConQueso opened this issue Jul 15, 2024 · 1 comment

Comments

@Mr-ConQueso
Copy link

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
Copy link
Owner

ReneR97 commented Aug 3, 2024

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

  • go to the domestika website
  • rightclick anywhere
  • click on inspect
  • in the window that opens go to the tab "Application"
  • there unter "Storage" to to "Cookies" and in that dropdown click on the domestika url
  • on the right side you should see all the cookies of the website, look for the ones you need
  • click on the cookie and on the bottom you should get the value
  • just copy that into the program

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants