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

Error while collecting sources feeds #728

Open
0PandaDEV opened this issue Dec 21, 2024 · 6 comments
Open

Error while collecting sources feeds #728

0PandaDEV opened this issue Dec 21, 2024 · 6 comments

Comments

@0PandaDEV
Copy link

0PandaDEV commented Dec 21, 2024

No matter what I try, it does not work and always gives me this error:

    ____                    
   / __/_______  __  _______
  / /_/ ___/ _ \/ / / / ___/
 / __/ /  /  __/ /_/ / /    
/_/ /_/   \___/\__, /_/     
              /____/ v0.10.3

freyr - (c) Miraculous Owonubi <[email protected]>
------------------------------------------------------
Checking directory permissions...[done] 
[spotify:track:54bFM56PmE4YLRnqpW6Tha]
 [•] Identifying service...[Spotify]
 [•] Checking authentication...[unauthenticated]
 [Spotify Login]
  [•] Logging in...[done] 
 Detected [track]
 Obtaining track metadata...[done] 
  ➤ Title: Therefore I Am
  ➤ Album: Therefore I Am
  ➤ Artist: Billie Eilish
  ➤ Year: 2020
  ➤ Playtime: 02:54
 [•] Collating...
 • [01 Therefore I Am]
    | ➤ Collating sources...
    |  ➤ [•] YouTube Music...(failed: [Response code 404 (Not Found)]) 
    |  ➤ [•] YouTube...[success, found 39 sources]
    | ➤ Awaiting audiofeeds...(failed: [Error]) 
 [•] Download Complete
 [•] Embedding Metadata...
  • [✕] 01 Therefore I Am [spotify:track:54bFM56PmE4YLRnqpW6Tha] (failed: Error while collecting sources feeds)
[•] Collation Complete
============ Stats ============
 [•] Runtime: [4.4s]
 [•] Total queries: [01]
 [•] Total tracks: [01]
     » Skipped: [00]
     ✓ Passed:  [00]
     ✕ Failed:  [01]
 [•] Output directory: [.]
 [•] Total Output size: 0.00 B
 [•] Total Network Usage: 0.00 B
     ♫ Media: 0.00 B
     ➤ Album Art: 0.00 B
 [•] Output bitrate: 320k
===============================

Commands I tired

freyr spotify:track:54bFM56PmE4YLRnqpW6Tha 
freyr get "https://music.apple.com/ch/album/seven-pools-of-evil/1782672334?i=1782672339"
freyr get "https://music.apple.com/ch/album/chainsaw-man/1718675454?i=1718675455"
@miraclx
Copy link
Owner

miraclx commented Jan 6, 2025

Hi, can you retry this with the SHOW_DEBUG_STACK env var set?

$ SHOW_DEBUG_STACK=1 freyr spotify:track:54bFM56PmE4YLRnqpW6Tha

@0PandaDEV
Copy link
Author

@miraclx

SHOW_DEBUG_STACK=1 freyr spotify:track:54bFM56PmE4YLRnqpW6Tha
    ____
   / __/_______  __  _______
  / /_/ ___/ _ \/ / / / ___/
 / __/ /  /  __/ /_/ / /
/_/ /_/   \___/\__, /_/
              /____/ v0.10.3

freyr - (c) Miraculous Owonubi <[email protected]>
------------------------------------------------------
Checking directory permissions...[done]
[spotify:track:54bFM56PmE4YLRnqpW6Tha]
 [•] Identifying service...[Spotify]
 [•] Checking authentication...[unauthenticated]
 [Spotify Login]
  [•] Logging in...[done]
 Detected [track]
 Obtaining track metadata...[done]
  ➤ Title: Therefore I Am
  ➤ Album: Therefore I Am
  ➤ Artist: Billie Eilish
  ➤ Year: 2020
  ➤ Playtime: 02:54
 [•] Collating...
 • [01 Therefore I Am]
    | ➤ Collating sources...
    |  ➤ [•] YouTube Music...(failed: [YouTubeSearchError: Response code 404 (Not Found)
    at file:///Users/pandadev/.bun/install/global/node_modules/freyr/src/services/youtube.js:93:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async YouTubeMusic.request (file:///Users/pandadev/.bun/install/global/node_modules/freyr/src/services/youtube.js:89:22)
    at async YouTubeMusic.search (file:///Users/pandadev/.bun/install/global/node_modules/freyr/src/services/youtube.js:133:22)
    at async YouTubeMusic.search (file:///Users/pandadev/.bun/install/global/node_modules/freyr/src/services/youtube.js:296:21) {
  status: 'ERR_NON_2XX_3XX_RESPONSE',
  statusCode: 404,
  body: {
    error: {
      code: 404,
      message: 'Requested entity was not found.',
      errors: [Array],
      status: 'NOT_FOUND'
    }
  }
}])
    |  ➤ [•] YouTube...[success, found 40 sources]
    | ➤ Awaiting audiofeeds...[Unable to collect source feeds]
 [•] Download Complete
 [•] Embedding Metadata...
  • [✕] 01 Therefore I Am [spotify:track:54bFM56PmE4YLRnqpW6Tha] (failed: Error while collecting sources feeds)
[•] Collation Complete
============ Stats ============
 [•] Runtime: [4s]
 [•] Total queries: [01]
 [•] Total tracks: [01]
     » Skipped: [00]
     ✓ Passed:  [00]
     ✕ Failed:  [01]
 [•] Output directory: [.]
 [•] Total Output size: 0.00 B
 [•] Total Network Usage: 0.00 B
     ♫ Media: 0.00 B
     ➤ Album Art: 0.00 B
 [•] Output bitrate: 320k
===============================

@miraclx
Copy link
Owner

miraclx commented Jan 6, 2025

Can you try the version of freyr from #722?

@0PandaDEV
Copy link
Author

now I get

    ____
   / __/_______  __  _______
  / /_/ ___/ _ \/ / / / ___/
 / __/ /  /  __/ /_/ / /
/_/ /_/   \___/\__, /_/
              /____/ v0.10.3

freyr - (c) Miraculous Owonubi <[email protected]>
------------------------------------------------------
Checking directory permissions...[done]
[spotify:track:54bFM56PmE4YLRnqpW6Tha]
 [•] Identifying service...[Spotify]
 [•] Checking authentication...[authenticated]
 Detected [track]
 Obtaining track metadata...(failed: [WebapiError: Too many requests
    at _toError (/Users/pandadev/Desktop/freyr/node_modules/@miraclx/spotify-web-api-node/src/http-manager.js:47:10)
    at /Users/pandadev/Desktop/freyr/node_modules/@miraclx/spotify-web-api-node/src/http-manager.js:71:25
    at Request.callback (/Users/pandadev/Desktop/freyr/node_modules/superagent/lib/node/index.js:905:3)
    at IncomingMessage.<anonymous> (/Users/pandadev/Desktop/freyr/node_modules/superagent/lib/node/index.js:1127:20)
    at Stream.emit (node:events:518:28)
    at Unzip.<anonymous> (/Users/pandadev/Desktop/freyr/node_modules/superagent/lib/node/unzip.js:53:12)
    at Unzip.emit (node:events:518:28)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  body: {},
  headers: {
    'cache-control': 'private, max-age=0',
    'retry-after': '36370',
    'access-control-allow-origin': '*',
    'access-control-allow-headers': 'Accept, App-Platform, Authorization, Content-Type, Origin, Retry-After, Spotify-App-Version, X-Cloud-Trace-Context, client-token, content-access-token',
    'access-control-allow-methods': 'GET, POST, OPTIONS, PUT, DELETE, PATCH',
    'access-control-allow-credentials': 'true',
    'access-control-max-age': '604800',
    'content-encoding': 'gzip',
    'strict-transport-security': 'max-age=31536000',
    'x-content-type-options': 'nosniff',
    date: 'Mon, 06 Jan 2025 13:42:57 GMT',
    server: 'envoy',
    via: 'HTTP/2 edgeproxy, 1.1 google',
    'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
    connection: 'close',
    'transfer-encoding': 'chunked'
  },
  statusCode: 429
}])
 [i] An error occurred while processing the query
============ Stats ============
 [•] Runtime: [405ms]
 [•] Total queries: [01]
 [•] Total tracks: [00]
     » Skipped: [00]
     ✓ Passed:  [00]
     ✕ Failed:  [00]
 [•] Output directory: [.]
 [•] Total Output size: 0.00 B
 [•] Total Network Usage: 0.00 B
     ♫ Media: 0.00 B
     ➤ Album Art: 0.00 B
 [•] Output bitrate: 320k
===============================

@miraclx
Copy link
Owner

miraclx commented Jan 6, 2025

Yeah, I get that too.. still investigating, looks like Spotify is employing new rate limiting.

@0PandaDEV
Copy link
Author

Im mainly focused on apple music and in that case it looks like a youtube problem. May be related to yt-dlp/yt-dlp#10128

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