SwapnilSoni1999/spotify-dl

headless logging in failing

Closed this issue · 0 comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. run spotify-dl with the --p, --u, and --l options
  2. after about 30 seconds, this error appears:
i Generating new access token
i Performing Spotify Auth Please Wait...
× waiting for selector `#auth-accept` failed: timeout 30000ms exceeded
Error: Could not generate token Please find a screenshot of why the auto login failed at  ./failure.png
    at requestAuthorizedTokens (file:///C:/Users/jj/AppData/Roaming/npm/node_modules/spotify-dl/lib/api.js:147:13)
    at async checkCredentials (file:///C:/Users/jj/AppData/Roaming/npm/node_modules/spotify-dl/lib/api.js:86:7)
    at async verifyCredentials (file:///C:/Users/jj/AppData/Roaming/npm/node_modules/spotify-dl/lib/api.js:61:5)
    at async callSpotifyApi (file:///C:/Users/jj/AppData/Roaming/npm/node_modules/spotify-dl/lib/api.js:189:5)
    at async extractSavedTracks (file:///C:/Users/jj/AppData/Roaming/npm/node_modules/spotify-dl/lib/api.js:475:19)
    at async getSavedTracks (file:///C:/Users/jj/AppData/Roaming/npm/node_modules/spotify-dl/util/get-songdata.js:84:10)    at async run (file:///C:/Users/jj/AppData/Roaming/npm/node_modules/spotify-dl/util/runner.js:229:22)

Expected behavior
it logs in

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context