Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot play any music

See original GitHub issue

Hello! I tried to set up this bot and am having trouble actually getting it to play music. I got it running using the node.js method with a fresh bot account, added the appropriate API keys to a .env file and such, but whenever anyone tries to play a song, we get Request failed with status code 403. Here’s the cli output with DEBUG enabled:

  follow-redirects options {
  protocol: 'https:',
  maxRedirects: 21,
  maxBodyLength: 10485760,
  path: '/youtube/v3/videos?expiresIn=3600&id=o_Rpr-uMg14&key=**censored_key**&part=id,+player,+snippet,+contentDetails,+status,+statistics',
  method: 'GET',
  headers: {
    Accept: 'application/json, text/plain, */*',
    'User-Agent': 'axios/0.19.2'
  agent: undefined,
  agents: { http: undefined, https: undefined },
  auth: undefined,
  hostname: '',
  port: null,
  nativeProtocols: {
    'http:': {
      _connectionListener: [Function: connectionListener],
      METHODS: [Array],
      STATUS_CODES: [Object],
      Agent: [Function],
      ClientRequest: [Function: ClientRequest],
      IncomingMessage: [Function: IncomingMessage],
      OutgoingMessage: [Function: OutgoingMessage],
      Server: [Function: Server],
      ServerResponse: [Function: ServerResponse],
      createServer: [Function: createServer],
      validateHeaderName: [Function: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
} +0ms
  muse Error: Request failed with status code 403
  muse     at createError (/home/server/muse/node_modules/axios/lib/core/createError.js:16:15)
  muse     at settle (/home/server/muse/node_modules/axios/lib/core/settle.js:17:12)
  muse     at IncomingMessage.handleStreamEnd (/home/server/muse/node_modules/axios/lib/adapters/http.js:236:11)
  muse     at IncomingMessage.emit (node:events:532:35)
  muse     at endReadableNT (node:internal/streams/readable:1346:12)
  muse     at processTicksAndRejections (node:internal/process/task_queues:83:21) +113ms```

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

Jaymus3commented, Feb 18, 2022

Got it to work by using a different Google account. Closing this issue.

MRLokopcommented, Feb 18, 2022

ok, I followed the link from the error and got a quota error

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Tips to Fix Music Won't Play on iPhone[2022] - Dr.Fone
Check the mute and volume button · Restart the device to fix the music won't play on iPhone · Restart the music app...
Read more >
How to Fix Music Won't Play Songs on iPhone? - iMobie
Solution 1: Update your iTunes to the latest version if it is not the current. Solution 2: Reauthorize your computer. In some cases,...
Read more >
Apple Music Not Playing Songs - Here's How To Fix?
Fix Your Internet Connection : One of the main reasons for your Apple Music playlist not playing is due to your internet connection....
Read more >
Problems with Google Play Music and how to fix them
We take a look at some common problems faced by Google Play Music users, and offer potential solutions and workarounds to address them!...
Read more >
Apple Music won't play songs - "Not playi…
Apple Music won't play songs - "Not playing" · Restarting the music app · Reinstalling the music app · Resetting network settings ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found