Advertisement
rama0dev

Untitled

Dec 5th, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. events.js:306
  2.     throw err; // Unhandled 'error' event
  3.     ^
  4.  
  5. Error [ERR_UNHANDLED_ERROR]: Unhandled error. (ErrorEvent {
  6.   target: WebSocket {
  7.     _events: [Object: null prototype] {
  8.       open: [Function],
  9.       message: [Function],
  10.       close: [Function],
  11.       error: [Function]
  12.     },
  13.     _eventsCount: 4,
  14.     _maxListeners: undefined,
  15.     readyState: 2,
  16.     protocol: '',
  17.     _binaryType: 'nodebuffer',
  18.     _closeFrameReceived: false,
  19.     _closeFrameSent: false,
  20.     _closeMessage: '',
  21.     _closeTimer: null,
  22.     _closeCode: 1006,
  23.     _extensions: {},
  24.     _receiver: null,
  25.     _sender: null,
  26.     _socket: null,
  27.     _isServer: false,
  28.     _redirects: 0,
  29.     url: 'wss://russia78.discord.media',
  30.     _req: ClientRequest {
  31.       _events: [Object: null prototype],
  32.       _eventsCount: 4,
  33.       _maxListeners: undefined,
  34.       outputData: [],
  35.       outputSize: 0,
  36.       writable: true,
  37.       destroyed: true,
  38.       _last: true,
  39.       chunkedEncoding: false,
  40.       shouldKeepAlive: true,
  41.       _defaultKeepAlive: true,
  42.       useChunkedEncodingByDefault: false,
  43.       sendDate: false,
  44.       _removedConnection: false,
  45.       _removedContLen: false,
  46.       _removedTE: false,
  47.       _contentLength: 0,
  48.       _hasBody: true,
  49.       _trailer: '',
  50.       finished: true,
  51.       _headerSent: true,
  52.       socket: [TLSSocket],
  53.       _header: 'GET / HTTP/1.1\r\n' +
  54.         'Sec-WebSocket-Version: 13\r\n' +
  55.         'Sec-WebSocket-Key: hJcCxhuCR5gpdY5CdFCsCQ==\r\n' +
  56.         'Connection: Upgrade\r\n' +
  57.         'Upgrade: websocket\r\n' +
  58.         'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n' +
  59.         'Host: russia78.discord.media\r\n' +
  60.         '\r\n',
  61.       _keepAliveTimeout: 0,
  62.       _onPendingData: [Function: noopPendingOutput],
  63.       agent: undefined,
  64.       socketPath: undefined,
  65.       method: 'GET',
  66.       maxHeaderSize: undefined,
  67.       insecureHTTPParser: undefined,
  68.       path: '/',
  69.       _ended: false,
  70.       res: null,
  71.       aborted: true,
  72.       timeoutCb: null,
  73.       upgradeOrConnect: false,
  74.       parser: [HTTPParser],
  75.       maxHeadersCount: null,
  76.       reusedSocket: false,
  77.       host: 'russia78.discord.media',
  78.       protocol: 'https:',
  79.       [Symbol(kCapture)]: false,
  80.       [Symbol(kNeedDrain)]: false,
  81.       [Symbol(corked)]: 0,
  82.       [Symbol(kOutHeaders)]: [Object: null prototype]
  83.     },
  84.     [Symbol(kCapture)]: false
  85.   },
  86.   type: 'error',
  87.   message: 'WebSocket was closed before the connection was established',
  88.   error: Error: WebSocket was closed before the connection was established
  89.       at WebSocket.close (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\ws\lib\websocket.js:217:14)
  90.       at VoiceWebSocket.reset (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:54:60)
  91.       at VoiceWebSocket.shutdown (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:46:10)
  92.       at VoiceConnection.cleanup (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:358:10)
  93.       at VoiceConnection._disconnect (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:337:10)
  94.       at ClientVoiceManager.onVoiceStateUpdate (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:35:18)
  95.       at Client.emit (events.js:315:20)
  96.       at VoiceStateUpdateHandler.handle (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\packets\handlers\VoiceStateUpdate.js:24:18)
  97.       at WebSocketPacketManager.handle (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:108:65)
  98.       at WebSocketConnection.onPacket (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:336:35)
  99. })
  100.     at VoiceWebSocket.emit (events.js:304:17)
  101.     at VoiceWebSocket.onError (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:156:10)
  102.     at WebSocket.onError (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\ws\lib\event-target.js:128:16)
  103.     at WebSocket.emit (events.js:315:20)
  104.     at abortHandshake (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\ws\lib\websocket.js:718:15)
  105.     at WebSocket.close (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\ws\lib\websocket.js:217:14)
  106.     at VoiceWebSocket.reset (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:54:60)
  107.     at VoiceWebSocket.shutdown (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:46:10)
  108.     at VoiceConnection.cleanup (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:358:10)
  109.     at VoiceConnection._disconnect (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:337:10) {
  110.   code: 'ERR_UNHANDLED_ERROR',
  111.   context: ErrorEvent {
  112.     target: WebSocket {
  113.       _events: [Object: null prototype] {
  114.         open: [Function: onOpen] { _listener: [Function: bound onOpen] },
  115.         message: [Function: onMessage] { _listener: [Function: bound onMessage] },
  116.         close: [Function: onClose] { _listener: [Function: bound onClose] },
  117.         error: [Function: onError] { _listener: [Function: bound onError] }
  118.       },
  119.       _eventsCount: 4,
  120.       _maxListeners: undefined,
  121.       readyState: 2,
  122.       protocol: '',
  123.       _binaryType: 'nodebuffer',
  124.       _closeFrameReceived: false,
  125.       _closeFrameSent: false,
  126.       _closeMessage: '',
  127.       _closeTimer: null,
  128.       _closeCode: 1006,
  129.       _extensions: {},
  130.       _receiver: null,
  131.       _sender: null,
  132.       _socket: null,
  133.       _isServer: false,
  134.       _redirects: 0,
  135.       url: 'wss://russia78.discord.media',
  136.       _req: <ref *2> ClientRequest {
  137.         _events: [Object: null prototype] {
  138.           error: [Function (anonymous)],
  139.           response: [Function (anonymous)],
  140.           upgrade: [Function (anonymous)],
  141.           abort: [Function: bound onceWrapper] {
  142.             listener: [Function: bound emitClose]
  143.           }
  144.         },
  145.         _eventsCount: 4,
  146.         _maxListeners: undefined,
  147.         outputData: [],
  148.         outputSize: 0,
  149.         writable: true,
  150.         destroyed: true,
  151.         _last: true,
  152.         chunkedEncoding: false,
  153.         shouldKeepAlive: true,
  154.         _defaultKeepAlive: true,
  155.         useChunkedEncodingByDefault: false,
  156.         sendDate: false,
  157.         _removedConnection: false,
  158.         _removedContLen: false,
  159.         _removedTE: false,
  160.         _contentLength: 0,
  161.         _hasBody: true,
  162.         _trailer: '',
  163.         finished: true,
  164.         _headerSent: true,
  165.         socket: <ref *1> TLSSocket {
  166.           _tlsOptions: {
  167.             allowHalfOpen: undefined,
  168.             pipe: false,
  169.             secureContext: [SecureContext],
  170.             isServer: false,
  171.             requestCert: true,
  172.             rejectUnauthorized: true,
  173.             session: undefined,
  174.             ALPNProtocols: undefined,
  175.             requestOCSP: undefined,
  176.             enableTrace: undefined,
  177.             pskCallback: undefined,
  178.             highWaterMark: undefined
  179.           },
  180.           _secureEstablished: true,
  181.           _securePending: false,
  182.           _newSessionPending: false,
  183.           _controlReleased: true,
  184.           secureConnecting: false,
  185.           _SNICallback: null,
  186.           servername: 'russia78.discord.media',
  187.           alpnProtocol: false,
  188.           authorized: true,
  189.           authorizationError: null,
  190.           encrypted: true,
  191.           _events: [Object: null prototype] {
  192.             close: [Array],
  193.             end: [Array],
  194.             newListener: [Array],
  195.             secure: [Function: onConnectSecure],
  196.             error: [Function: socketErrorListener],
  197.             data: [Function: socketOnData],
  198.             drain: [Function: ondrain]
  199.           },
  200.           _eventsCount: 7,
  201.           connecting: false,
  202.           _hadError: false,
  203.           _parent: null,
  204.           _host: 'russia78.discord.media',
  205.           _readableState: ReadableState {
  206.             objectMode: false,
  207.             highWaterMark: 16384,
  208.             buffer: [BufferList],
  209.             length: 0,
  210.             pipes: [],
  211.             flowing: true,
  212.             ended: false,
  213.             endEmitted: false,
  214.             reading: true,
  215.             sync: false,
  216.             needReadable: true,
  217.             emittedReadable: false,
  218.             readableListening: false,
  219.             resumeScheduled: false,
  220.             errorEmitted: false,
  221.             emitClose: false,
  222.             autoDestroy: false,
  223.             destroyed: true,
  224.             errored: null,
  225.             closed: true,
  226.             closeEmitted: false,
  227.             defaultEncoding: 'utf8',
  228.             awaitDrainWriters: null,
  229.             multiAwaitDrain: false,
  230.             readingMore: false,
  231.             decoder: null,
  232.             encoding: null,
  233.             [Symbol(kPaused)]: false
  234.           },
  235.           _maxListeners: undefined,
  236.           _writableState: WritableState {
  237.             objectMode: false,
  238.             highWaterMark: 16384,
  239.             finalCalled: false,
  240.             needDrain: false,
  241.             ending: false,
  242.             ended: false,
  243.             finished: false,
  244.             destroyed: true,
  245.             decodeStrings: false,
  246.             defaultEncoding: 'utf8',
  247.             length: 0,
  248.             writing: false,
  249.             corked: 0,
  250.             sync: false,
  251.             bufferProcessing: false,
  252.             onwrite: [Function: bound onwrite],
  253.             writecb: null,
  254.             writelen: 0,
  255.             afterWriteTickInfo: null,
  256.             buffered: [],
  257.             bufferedIndex: 0,
  258.             allBuffers: true,
  259.             allNoop: true,
  260.             pendingcb: 0,
  261.             prefinished: false,
  262.             errorEmitted: false,
  263.             emitClose: false,
  264.             autoDestroy: false,
  265.             errored: null,
  266.             closed: true,
  267.             closeEmitted: false,
  268.             writable: true
  269.           },
  270.           allowHalfOpen: false,
  271.           _sockname: null,
  272.           _pendingData: null,
  273.           _pendingEncoding: '',
  274.           server: undefined,
  275.           _server: null,
  276.           ssl: null,
  277.           _requestCert: true,
  278.           _rejectUnauthorized: true,
  279.           parser: HTTPParser {
  280.             '1': [Function: parserOnHeaders],
  281.             '2': [Function: parserOnHeadersComplete],
  282.             '3': [Function: parserOnBody],
  283.             '4': [Function: parserOnMessageComplete],
  284.             '5': null,
  285.             '6': null,
  286.             _headers: [],
  287.             _url: '',
  288.             socket: [Circular *1],
  289.             incoming: null,
  290.             outgoing: [Circular *2],
  291.             maxHeaderPairs: 2000,
  292.             _consumed: false,
  293.             onIncoming: [Function: parserOnIncomingClient],
  294.             [Symbol(resource_symbol)]: [HTTPClientAsyncResource]
  295.           },
  296.           _httpMessage: [Circular *2],
  297.           [Symbol(res)]: TLSWrap {
  298.             _parent: [TCP],
  299.             _parentWrap: undefined,
  300.             _secureContext: [SecureContext],
  301.             reading: true,
  302.             onkeylog: [Function: onkeylog],
  303.             onhandshakestart: [Function: noop],
  304.             onhandshakedone: [Function (anonymous)],
  305.             onocspresponse: [Function: onocspresponse],
  306.             onnewsession: [Function: onnewsessionclient],
  307.             onerror: [Function: onerror],
  308.             [Symbol(owner_symbol)]: [Circular *1]
  309.           },
  310.           [Symbol(verified)]: true,
  311.           [Symbol(pendingSession)]: null,
  312.           [Symbol(async_id_symbol)]: 6793,
  313.           [Symbol(kHandle)]: null,
  314.           [Symbol(kSetNoDelay)]: false,
  315.           [Symbol(lastWriteQueueSize)]: 0,
  316.           [Symbol(timeout)]: null,
  317.           [Symbol(kBuffer)]: null,
  318.           [Symbol(kBufferCb)]: null,
  319.           [Symbol(kBufferGen)]: null,
  320.           [Symbol(kCapture)]: false,
  321.           [Symbol(kBytesRead)]: 0,
  322.           [Symbol(kBytesWritten)]: 231,
  323.           [Symbol(connect-options)]: {
  324.             rejectUnauthorized: true,
  325.             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',
  326.             checkServerIdentity: [Function: checkServerIdentity],
  327.             minDHSize: 1024,
  328.             protocolVersion: 13,
  329.             maxPayload: 104857600,
  330.             perMessageDeflate: true,
  331.             followRedirects: false,
  332.             maxRedirects: 10,
  333.             createConnection: [Function: tlsConnect],
  334.             socketPath: undefined,
  335.             hostname: undefined,
  336.             protocol: undefined,
  337.             timeout: undefined,
  338.             method: undefined,
  339.             auth: undefined,
  340.             host: 'russia78.discord.media',
  341.             path: undefined,
  342.             port: 443,
  343.             defaultPort: 443,
  344.             headers: [Object],
  345.             _defaultAgent: [Agent],
  346.             servername: 'russia78.discord.media',
  347.             singleUse: true
  348.           }
  349.         },
  350.         _header: 'GET / HTTP/1.1\r\n' +
  351.           'Sec-WebSocket-Version: 13\r\n' +
  352.           'Sec-WebSocket-Key: hJcCxhuCR5gpdY5CdFCsCQ==\r\n' +
  353.           'Connection: Upgrade\r\n' +
  354.           'Upgrade: websocket\r\n' +
  355.           'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n' +
  356.           'Host: russia78.discord.media\r\n' +
  357.           '\r\n',
  358.         _keepAliveTimeout: 0,
  359.         _onPendingData: [Function: noopPendingOutput],
  360.         agent: undefined,
  361.         socketPath: undefined,
  362.         method: 'GET',
  363.         maxHeaderSize: undefined,
  364.         insecureHTTPParser: undefined,
  365.         path: '/',
  366.         _ended: false,
  367.         res: null,
  368.         aborted: true,
  369.         timeoutCb: null,
  370.         upgradeOrConnect: false,
  371.         parser: <ref *3> HTTPParser {
  372.           '1': [Function: parserOnHeaders],
  373.           '2': [Function: parserOnHeadersComplete],
  374.           '3': [Function: parserOnBody],
  375.           '4': [Function: parserOnMessageComplete],
  376.           '5': null,
  377.           '6': null,
  378.           _headers: [],
  379.           _url: '',
  380.           socket: <ref *1> TLSSocket {
  381.             _tlsOptions: [Object],
  382.             _secureEstablished: true,
  383.             _securePending: false,
  384.             _newSessionPending: false,
  385.             _controlReleased: true,
  386.             secureConnecting: false,
  387.             _SNICallback: null,
  388.             servername: 'russia78.discord.media',
  389.             alpnProtocol: false,
  390.             authorized: true,
  391.             authorizationError: null,
  392.             encrypted: true,
  393.             _events: [Object: null prototype],
  394.             _eventsCount: 7,
  395.             connecting: false,
  396.             _hadError: false,
  397.             _parent: null,
  398.             _host: 'russia78.discord.media',
  399.             _readableState: [ReadableState],
  400.             _maxListeners: undefined,
  401.             _writableState: [WritableState],
  402.             allowHalfOpen: false,
  403.             _sockname: null,
  404.             _pendingData: null,
  405.             _pendingEncoding: '',
  406.             server: undefined,
  407.             _server: null,
  408.             ssl: null,
  409.             _requestCert: true,
  410.             _rejectUnauthorized: true,
  411.             parser: [Circular *3],
  412.             _httpMessage: [Circular *2],
  413.             [Symbol(res)]: [TLSWrap],
  414.             [Symbol(verified)]: true,
  415.             [Symbol(pendingSession)]: null,
  416.             [Symbol(async_id_symbol)]: 6793,
  417.             [Symbol(kHandle)]: null,
  418.             [Symbol(kSetNoDelay)]: false,
  419.             [Symbol(lastWriteQueueSize)]: 0,
  420.             [Symbol(timeout)]: null,
  421.             [Symbol(kBuffer)]: null,
  422.             [Symbol(kBufferCb)]: null,
  423.             [Symbol(kBufferGen)]: null,
  424.             [Symbol(kCapture)]: false,
  425.             [Symbol(kBytesRead)]: 0,
  426.             [Symbol(kBytesWritten)]: 231,
  427.             [Symbol(connect-options)]: [Object]
  428.           },
  429.           incoming: null,
  430.           outgoing: [Circular *2],
  431.           maxHeaderPairs: 2000,
  432.           _consumed: false,
  433.           onIncoming: [Function: parserOnIncomingClient],
  434.           [Symbol(resource_symbol)]: HTTPClientAsyncResource {
  435.             type: 'HTTPINCOMINGMESSAGE',
  436.             req: [Circular *2]
  437.           }
  438.         },
  439.         maxHeadersCount: null,
  440.         reusedSocket: false,
  441.         host: 'russia78.discord.media',
  442.         protocol: 'https:',
  443.         [Symbol(kCapture)]: false,
  444.         [Symbol(kNeedDrain)]: false,
  445.         [Symbol(corked)]: 0,
  446.         [Symbol(kOutHeaders)]: [Object: null prototype] {
  447.           'sec-websocket-version': [ 'Sec-WebSocket-Version', 13 ],
  448.           'sec-websocket-key': [ 'Sec-WebSocket-Key', 'hJcCxhuCR5gpdY5CdFCsCQ==' ],
  449.           connection: [ 'Connection', 'Upgrade' ],
  450.           upgrade: [ 'Upgrade', 'websocket' ],
  451.           'sec-websocket-extensions': [
  452.             'Sec-WebSocket-Extensions',
  453.             'permessage-deflate; client_max_window_bits'
  454.           ],
  455.           host: [ 'Host', 'russia78.discord.media' ]
  456.         }
  457.       },
  458.       [Symbol(kCapture)]: false
  459.     },
  460.     type: 'error',
  461.     message: 'WebSocket was closed before the connection was established',
  462.     error: Error: WebSocket was closed before the connection was established
  463.         at WebSocket.close (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\ws\lib\websocket.js:217:14)
  464.         at VoiceWebSocket.reset (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:54:60)
  465.         at VoiceWebSocket.shutdown (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceWebSocket.js:46:10)
  466.         at VoiceConnection.cleanup (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:358:10)
  467.         at VoiceConnection._disconnect (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\VoiceConnection.js:337:10)
  468.         at ClientVoiceManager.onVoiceStateUpdate (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:35:18)
  469.         at Client.emit (events.js:315:20)
  470.         at VoiceStateUpdateHandler.handle (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\packets\handlers\VoiceStateUpdate.js:24:18)
  471.         at WebSocketPacketManager.handle (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:108:65)
  472.         at WebSocketConnection.onPacket (C:\Users\Administrator\Desktop\BOTS\DISCORD\RAMA\VTRAND\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:336:35)
  473.   }
  474. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement