Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- events.js:306
- throw err; // Unhandled 'error' event
- ^
- Error [ERR_UNHANDLED_ERROR]: Unhandled error. (ErrorEvent {
- target: WebSocket {
- _events: [Object: null prototype] {
- open: [Function],
- message: [Function],
- close: [Function],
- error: [Function]
- },
- _eventsCount: 4,
- _maxListeners: undefined,
- readyState: 2,
- protocol: '',
- _binaryType: 'nodebuffer',
- _closeFrameReceived: false,
- _closeFrameSent: false,
- _closeMessage: '',
- _closeTimer: null,
- _closeCode: 1006,
- _extensions: {},
- _receiver: null,
- _sender: null,
- _socket: null,
- _isServer: false,
- _redirects: 0,
- url: 'wss://russia78.discord.media',
- _req: ClientRequest {
- _events: [Object: null prototype],
- _eventsCount: 4,
- _maxListeners: undefined,
- outputData: [],
- outputSize: 0,
- writable: true,
- destroyed: true,
- _last: true,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- _defaultKeepAlive: true,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: [TLSSocket],
- _header: 'GET / HTTP/1.1\r\n' +
- 'Sec-WebSocket-Version: 13\r\n' +
- 'Sec-WebSocket-Key: hJcCxhuCR5gpdY5CdFCsCQ==\r\n' +
- 'Connection: Upgrade\r\n' +
- 'Upgrade: websocket\r\n' +
- 'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n' +
- 'Host: russia78.discord.media\r\n' +
- '\r\n',
- _keepAliveTimeout: 0,
- _onPendingData: [Function: noopPendingOutput],
- agent: undefined,
- socketPath: undefined,
- method: 'GET',
- maxHeaderSize: undefined,
- insecureHTTPParser: undefined,
- path: '/',
- _ended: false,
- res: null,
- aborted: true,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: [HTTPParser],
- maxHeadersCount: null,
- reusedSocket: false,
- host: 'russia78.discord.media',
- protocol: 'https:',
- [Symbol(kCapture)]: false,
- [Symbol(kNeedDrain)]: false,
- [Symbol(corked)]: 0,
- [Symbol(kOutHeaders)]: [Object: null prototype]
- },
- [Symbol(kCapture)]: false
- },
- type: 'error',
- message: 'WebSocket was closed before the connection was established',
- error: Error: WebSocket was closed before the connection was established
- at WebSocket.close (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\ws\lib\websocket.js:217:14)
- at VoiceWebSocket.reset (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:54:60)
- at VoiceWebSocket.shutdown (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:46:10)
- at VoiceConnection.cleanup (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:358:10)
- at VoiceConnection._disconnect (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:337:10)
- at ClientVoiceManager.onVoiceStateUpdate (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:35:18)
- at Client.emit (events.js:315:20)
- at VoiceStateUpdateHandler.handle (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\packets\handlers\VoiceStateUpdate.js:24:18)
- at WebSocketPacketManager.handle (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:108:65)
- at WebSocketConnection.onPacket (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:336:35)
- })
- at VoiceWebSocket.emit (events.js:304:17)
- at VoiceWebSocket.onError (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:156:10)
- at WebSocket.onError (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\ws\lib\event-target.js:128:16)
- at WebSocket.emit (events.js:315:20)
- at abortHandshake (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\ws\lib\websocket.js:718:15)
- at WebSocket.close (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\ws\lib\websocket.js:217:14)
- at VoiceWebSocket.reset (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:54:60)
- at VoiceWebSocket.shutdown (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:46:10)
- at VoiceConnection.cleanup (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:358:10)
- at VoiceConnection._disconnect (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:337:10) {
- code: 'ERR_UNHANDLED_ERROR',
- context: ErrorEvent {
- target: WebSocket {
- _events: [Object: null prototype] {
- open: [Function: onOpen] { _listener: [Function: bound onOpen] },
- message: [Function: onMessage] { _listener: [Function: bound onMessage] },
- close: [Function: onClose] { _listener: [Function: bound onClose] },
- error: [Function: onError] { _listener: [Function: bound onError] }
- },
- _eventsCount: 4,
- _maxListeners: undefined,
- readyState: 2,
- protocol: '',
- _binaryType: 'nodebuffer',
- _closeFrameReceived: false,
- _closeFrameSent: false,
- _closeMessage: '',
- _closeTimer: null,
- _closeCode: 1006,
- _extensions: {},
- _receiver: null,
- _sender: null,
- _socket: null,
- _isServer: false,
- _redirects: 0,
- url: 'wss://russia78.discord.media',
- _req: <ref *2> ClientRequest {
- _events: [Object: null prototype] {
- error: [Function (anonymous)],
- response: [Function (anonymous)],
- upgrade: [Function (anonymous)],
- abort: [Function: bound onceWrapper] {
- listener: [Function: bound emitClose]
- }
- },
- _eventsCount: 4,
- _maxListeners: undefined,
- outputData: [],
- outputSize: 0,
- writable: true,
- destroyed: true,
- _last: true,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- _defaultKeepAlive: true,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: <ref *1> TLSSocket {
- _tlsOptions: {
- allowHalfOpen: undefined,
- pipe: false,
- secureContext: [SecureContext],
- isServer: false,
- requestCert: true,
- rejectUnauthorized: true,
- session: undefined,
- ALPNProtocols: undefined,
- requestOCSP: undefined,
- enableTrace: undefined,
- pskCallback: undefined,
- highWaterMark: undefined
- },
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- secureConnecting: false,
- _SNICallback: null,
- servername: 'russia78.discord.media',
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object: null prototype] {
- close: [Array],
- end: [Array],
- newListener: [Array],
- secure: [Function: onConnectSecure],
- error: [Function: socketErrorListener],
- data: [Function: socketOnData],
- drain: [Function: ondrain]
- },
- _eventsCount: 7,
- connecting: false,
- _hadError: false,
- _parent: null,
- _host: 'russia78.discord.media',
- _readableState: ReadableState {
- objectMode: false,
- highWaterMark: 16384,
- buffer: [BufferList],
- length: 0,
- pipes: [],
- flowing: true,
- ended: false,
- endEmitted: false,
- reading: true,
- sync: false,
- needReadable: true,
- emittedReadable: false,
- readableListening: false,
- resumeScheduled: false,
- errorEmitted: false,
- emitClose: false,
- autoDestroy: false,
- destroyed: true,
- errored: null,
- closed: true,
- closeEmitted: false,
- defaultEncoding: 'utf8',
- awaitDrainWriters: null,
- multiAwaitDrain: false,
- readingMore: false,
- decoder: null,
- encoding: null,
- [Symbol(kPaused)]: false
- },
- _maxListeners: undefined,
- _writableState: WritableState {
- objectMode: false,
- highWaterMark: 16384,
- finalCalled: false,
- needDrain: false,
- ending: false,
- ended: false,
- finished: false,
- destroyed: true,
- decodeStrings: false,
- defaultEncoding: 'utf8',
- length: 0,
- writing: false,
- corked: 0,
- sync: false,
- bufferProcessing: false,
- onwrite: [Function: bound onwrite],
- writecb: null,
- writelen: 0,
- afterWriteTickInfo: null,
- buffered: [],
- bufferedIndex: 0,
- allBuffers: true,
- allNoop: true,
- pendingcb: 0,
- prefinished: false,
- errorEmitted: false,
- emitClose: false,
- autoDestroy: false,
- errored: null,
- closed: true,
- closeEmitted: false,
- writable: true
- },
- allowHalfOpen: false,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: HTTPParser {
- '1': [Function: parserOnHeaders],
- '2': [Function: parserOnHeadersComplete],
- '3': [Function: parserOnBody],
- '4': [Function: parserOnMessageComplete],
- '5': null,
- '6': null,
- _headers: [],
- _url: '',
- socket: [Circular *1],
- incoming: null,
- outgoing: [Circular *2],
- maxHeaderPairs: 2000,
- _consumed: false,
- onIncoming: [Function: parserOnIncomingClient],
- [Symbol(resource_symbol)]: [HTTPClientAsyncResource]
- },
- _httpMessage: [Circular *2],
- [Symbol(res)]: TLSWrap {
- _parent: [TCP],
- _parentWrap: undefined,
- _secureContext: [SecureContext],
- reading: true,
- onkeylog: [Function: onkeylog],
- onhandshakestart: [Function: noop],
- onhandshakedone: [Function (anonymous)],
- onocspresponse: [Function: onocspresponse],
- onnewsession: [Function: onnewsessionclient],
- onerror: [Function: onerror],
- [Symbol(owner_symbol)]: [Circular *1]
- },
- [Symbol(verified)]: true,
- [Symbol(pendingSession)]: null,
- [Symbol(async_id_symbol)]: 6793,
- [Symbol(kHandle)]: null,
- [Symbol(kSetNoDelay)]: false,
- [Symbol(lastWriteQueueSize)]: 0,
- [Symbol(timeout)]: null,
- [Symbol(kBuffer)]: null,
- [Symbol(kBufferCb)]: null,
- [Symbol(kBufferGen)]: null,
- [Symbol(kCapture)]: false,
- [Symbol(kBytesRead)]: 0,
- [Symbol(kBytesWritten)]: 231,
- [Symbol(connect-options)]: {
- rejectUnauthorized: true,
- ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
- checkServerIdentity: [Function: checkServerIdentity],
- minDHSize: 1024,
- protocolVersion: 13,
- maxPayload: 104857600,
- perMessageDeflate: true,
- followRedirects: false,
- maxRedirects: 10,
- createConnection: [Function: tlsConnect],
- socketPath: undefined,
- hostname: undefined,
- protocol: undefined,
- timeout: undefined,
- method: undefined,
- auth: undefined,
- host: 'russia78.discord.media',
- path: undefined,
- port: 443,
- defaultPort: 443,
- headers: [Object],
- _defaultAgent: [Agent],
- servername: 'russia78.discord.media',
- singleUse: true
- }
- },
- _header: 'GET / HTTP/1.1\r\n' +
- 'Sec-WebSocket-Version: 13\r\n' +
- 'Sec-WebSocket-Key: hJcCxhuCR5gpdY5CdFCsCQ==\r\n' +
- 'Connection: Upgrade\r\n' +
- 'Upgrade: websocket\r\n' +
- 'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n' +
- 'Host: russia78.discord.media\r\n' +
- '\r\n',
- _keepAliveTimeout: 0,
- _onPendingData: [Function: noopPendingOutput],
- agent: undefined,
- socketPath: undefined,
- method: 'GET',
- maxHeaderSize: undefined,
- insecureHTTPParser: undefined,
- path: '/',
- _ended: false,
- res: null,
- aborted: true,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: <ref *3> HTTPParser {
- '1': [Function: parserOnHeaders],
- '2': [Function: parserOnHeadersComplete],
- '3': [Function: parserOnBody],
- '4': [Function: parserOnMessageComplete],
- '5': null,
- '6': null,
- _headers: [],
- _url: '',
- socket: <ref *1> TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- secureConnecting: false,
- _SNICallback: null,
- servername: 'russia78.discord.media',
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object: null prototype],
- _eventsCount: 7,
- connecting: false,
- _hadError: false,
- _parent: null,
- _host: 'russia78.discord.media',
- _readableState: [ReadableState],
- _maxListeners: undefined,
- _writableState: [WritableState],
- allowHalfOpen: false,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: [Circular *3],
- _httpMessage: [Circular *2],
- [Symbol(res)]: [TLSWrap],
- [Symbol(verified)]: true,
- [Symbol(pendingSession)]: null,
- [Symbol(async_id_symbol)]: 6793,
- [Symbol(kHandle)]: null,
- [Symbol(kSetNoDelay)]: false,
- [Symbol(lastWriteQueueSize)]: 0,
- [Symbol(timeout)]: null,
- [Symbol(kBuffer)]: null,
- [Symbol(kBufferCb)]: null,
- [Symbol(kBufferGen)]: null,
- [Symbol(kCapture)]: false,
- [Symbol(kBytesRead)]: 0,
- [Symbol(kBytesWritten)]: 231,
- [Symbol(connect-options)]: [Object]
- },
- incoming: null,
- outgoing: [Circular *2],
- maxHeaderPairs: 2000,
- _consumed: false,
- onIncoming: [Function: parserOnIncomingClient],
- [Symbol(resource_symbol)]: HTTPClientAsyncResource {
- type: 'HTTPINCOMINGMESSAGE',
- req: [Circular *2]
- }
- },
- maxHeadersCount: null,
- reusedSocket: false,
- host: 'russia78.discord.media',
- protocol: 'https:',
- [Symbol(kCapture)]: false,
- [Symbol(kNeedDrain)]: false,
- [Symbol(corked)]: 0,
- [Symbol(kOutHeaders)]: [Object: null prototype] {
- 'sec-websocket-version': [ 'Sec-WebSocket-Version', 13 ],
- 'sec-websocket-key': [ 'Sec-WebSocket-Key', 'hJcCxhuCR5gpdY5CdFCsCQ==' ],
- connection: [ 'Connection', 'Upgrade' ],
- upgrade: [ 'Upgrade', 'websocket' ],
- 'sec-websocket-extensions': [
- 'Sec-WebSocket-Extensions',
- 'permessage-deflate; client_max_window_bits'
- ],
- host: [ 'Host', 'russia78.discord.media' ]
- }
- },
- [Symbol(kCapture)]: false
- },
- type: 'error',
- message: 'WebSocket was closed before the connection was established',
- error: Error: WebSocket was closed before the connection was established
- at WebSocket.close (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\ws\lib\websocket.js:217:14)
- at VoiceWebSocket.reset (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:54:60)
- at VoiceWebSocket.shutdown (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:46:10)
- at VoiceConnection.cleanup (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:358:10)
- at VoiceConnection._disconnect (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:337:10)
- at ClientVoiceManager.onVoiceStateUpdate (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:35:18)
- at Client.emit (events.js:315:20)
- at VoiceStateUpdateHandler.handle (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\packets\handlers\VoiceStateUpdate.js:24:18)
- at WebSocketPacketManager.handle (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:108:65)
- at WebSocketConnection.onPacket (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:336:35)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement