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

[BUG]: Error loading track from YouTube #92

Open
3 tasks done
TehPigYT opened this issue Dec 18, 2024 · 2 comments
Open
3 tasks done

[BUG]: Error loading track from YouTube #92

TehPigYT opened this issue Dec 18, 2024 · 2 comments
Labels
bug Something isn't working confirmed This issue or pull request is confirmed to be done.

Comments

@TehPigYT
Copy link
Collaborator

NodeLink version

4b68eac

Description

[search]: Found 5 tracks on SoundCloud for query memories david guetta
[decodetrack]: Received a request from client.
 Params: "/v4/decodetrack"
 Headers: {"accept-encoding":"br, gzip, deflate","user-agent":"FastLink","content-type":"application/json","authorization":"REDACTED","host":"REDACTED","connection":"keep-alive"}
[ALL]: Received a request from client.
 Path: /v4/decodetrack
 Headers: {"accept-encoding":"br, gzip, deflate","user-agent":"FastLink","content-type":"application/json","authorization":"REDACTED","host":"REDACTED","connection":"keep-alive"}
[ALL]: Received a request from client.
 Path: /v4/sessions/j9lI0ajZI1S6JWkV/players/841311038506795008
 Headers: {"accept-encoding":"br, gzip, deflate","user-agent":"FastLink","content-type":"application/json","authorization":"REDACTED","host":"REDACTED","connection":"keep-alive","transfer-encoding":"chunked"}
 Body: "{\"track\":{\"encoded\":\"QAAA5AMAJE1lbW9yaWVzIChmZWF0LiBLaWQgQ3VkaSkgW0V4dGVuZGVkXQAMRGF2aWQgR3VldHRhAAAAAAAAdTAACTI1NjA2ODc1NgABADtodHRwczovL3NvdW5kY2xvdWQuY29tL2RhdmlkZ3VldHRhL21lbW9yaWVzLWZlYXQta2lkLWN1ZGktMQEAN2h0dHBzOi8vaTEuc25kY2RuLmNvbS9hcnR3b3Jrcy1qR3U3MEJVb2cza2gtMC1sYXJnZS5qcGcBAAxGUlpJRDA5MDIxNTAACnNvdW5kY2xvdWQAAAAAAAAAAA==\"}}"
[retrieveStream]: Exception from YouTube for query Memories (feat. Kid Cudi) (Extended): This video is unavailable
[trackEnd]: David Guetta - Memories by Raouf Harzi because it was replaced.
[trackStart]: Memories (feat. Kid Cudi) [Extended] by David Guetta.
file:///home/container/src/utils.js:88
    let req = (url.startsWith('https') ? https : http).request(url, {
                   ^
TypeError: Cannot read properties of undefined (reading 'startsWith')
    at file:///home/container/src/utils.js:88:20
    at new Promise (<anonymous>)
    at http1makeRequest (file:///home/container/src/utils.js:85:10)
    at file:///home/container/src/sources.js:169:116
    at new Promise (<anonymous>)
    at Object.getTrackStream (file:///home/container/src/sources.js:113:10)
    at VoiceConnection.getResource (file:///home/container/src/connection/voiceHandler.js:183:38)
    at VoiceConnection.play (file:///home/container/src/connection/voiceHandler.js:269:29)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Server.requestHandler (file:///home/container/src/connection/handler.js:647:16)
Node.js v20.18.0

Client

FastLink (b70b47d)

Steps to reproduce

Load a track using the youtube source

Example code

No response

Confirmations

  • My environment meets the minimum requirements.
  • I have verified that this is not a duplicate issue.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@TehPigYT TehPigYT added bug Something isn't working not confirmed This issue or pull request is not confirmed to be done. labels Dec 18, 2024
@1Lucas1apk
Copy link
Contributor

Error: video arrives as hls without even being a live and the system that resolves it was not working correctly, I even removed it from the codes and I don't know how to fix it, that's why I didn't put it together with the pr, I tried to solve it but I don't know how to use ffmpeg and/or hls decoder

Obs: It actually works with a latency of 5s the video cuts in the middle

@ThePedroo ThePedroo added confirmed This issue or pull request is confirmed to be done. and removed not confirmed This issue or pull request is not confirmed to be done. labels Dec 31, 2024
@ThePedroo
Copy link
Member

Please update NodeLink, likely fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed This issue or pull request is confirmed to be done.
Projects
None yet
Development

No branches or pull requests

3 participants