Cannot play any music
See original GitHub issueIssue Description
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: 'www.googleapis.com',
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:
- Created a year ago
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Got it to work by using a different Google account. Closing this issue.
ok, I followed the link from the error and got a quota error