Discord.js spawn EACCES


#1

I am using discord.js for a bot. The bot has music functionalities.

songc.join().then(connection =>{bot.recentstream = connection.playStream(${song.stream_url}?client_id=${bot.soundcloud});})

It gives an error: (node:17622) UnhandledPromiseRejectionWarning: Error: spawn EACCES


#2

Please try to run it in localhost, if it doesn’t give the same error then I can take a look at your project if you’d like to.


#3

I have been running it in localhost, it has no problems, my code here


#4

Thanks for responding, however I made a new project, uploaded the files and boom, it works.