You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This de-sync in versions caused the ListenerManager#callOnConnected from nv-websocket-client to throw java.lang.NoSuchMethodError: 'void com.fasterxml.jackson.core.util.BufferRecycler.releaseToPool()' which is not handled and reported to the end user because it seems from what I have seen that the class WebSocketClient ignores the handleCallbackError (I found out that AudioWebSocket actually does and correctly "rethrows" it by wrapping it in an ExceptionEvent)
My suggestion is that it should log the error somewhere or allow me to catch it by listening to ExceptionEvents (probably both)
(there is other methods like onUnexpectedError which might need to be handled by WebSocketClient too I guess ? maybe all others onXError, looks like onError is already implemented correctly)
General Troubleshooting
Version of JDA
5.0.0-beta.22
Expected Behaviour
It should not hang on
jda.awaitReady();
indefinitely when the websocket encounters an error.In my situation I had badly updated my libraries and had in my pom this :
This de-sync in versions caused the
ListenerManager#callOnConnected
from nv-websocket-client to throwjava.lang.NoSuchMethodError: 'void com.fasterxml.jackson.core.util.BufferRecycler.releaseToPool()'
which is not handled and reported to the end user because it seems from what I have seen that the classWebSocketClient
ignores thehandleCallbackError
(I found out that AudioWebSocket actually does and correctly "rethrows" it by wrapping it in anExceptionEvent
)My suggestion is that it should log the error somewhere or allow me to catch it by listening to ExceptionEvents (probably both)
(there is other methods like onUnexpectedError which might need to be handled by WebSocketClient too I guess ? maybe all others onXError, looks like onError is already implemented correctly)
Code Example for Reproduction Steps
Code for JDABuilder or DefaultShardManagerBuilder used
Exception or Error
The text was updated successfully, but these errors were encountered: