java.lang.RuntimeException: Could not get Private-channel for user: lib2k... Error: HTTPResponse[401: {"code": 0, "message": "401: Unauthorized"}]


Solutions on the web1

Solution icon of github
via GitHub by lib2k
, 9 months ago
Could not get Private-channel for user: lib2k... Error: HTTPResponse[401: {"code": 0, "message": "401: Unauthorized"}]

Stack trace

java.lang.RuntimeException: Could not get Private-channel for user: lib2k... Error: HTTPResponse[401: {"code": 0, "message": "401: Unauthorized"}]
	at net.dv8tion.jda.entities.impl.UserImpl.getPrivateChannel(UserImpl.java:124)
	at net.dirtydeeds.discordsoundboard.service.SoundPlayerImpl.moveToUserIdsChannel(SoundPlayerImpl.java:353)
	at net.dirtydeeds.discordsoundboard.service.SoundPlayerImpl.playFileForEvent(SoundPlayerImpl.java:212)
	at net.dirtydeeds.discordsoundboard.ChatSoundBoardListener.onMessageReceived(ChatSoundBoardListener.java:214)
	at net.dv8tion.jda.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:184)
	at net.dv8tion.jda.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:64)
	at net.dv8tion.jda.handle.MessageReceivedHandler.handleDefaultMessage(MessageReceivedHandler.java:94)
	at net.dv8tion.jda.handle.MessageReceivedHandler.handleInternally(MessageReceivedHandler.java:50)
	at net.dv8tion.jda.handle.SocketHandler.handle(SocketHandler.java:38)
	at net.dv8tion.jda.requests.WebSocketClient.handleEvent(WebSocketClient.java:596)
	at net.dv8tion.jda.requests.WebSocketClient.onTextMessage(WebSocketClient.java:324)
	at com.neovisionaries.ws.client.ListenerManager.callOnTextMessage(ListenerManager.java:352)
	at com.neovisionaries.ws.client.ReadingThread.callOnTextMessage(ReadingThread.java:233)
	at com.neovisionaries.ws.client.ReadingThread.callOnTextMessage(ReadingThread.java:211)
	at com.neovisionaries.ws.client.ReadingThread.handleTextFrame(ReadingThread.java:910)
	at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:693)
	at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:102)
	at com.neovisionaries.ws.client.ReadingThread.run(ReadingThread.java:61)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.