Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote: Unhandled error #107

Open
MidoMiddle opened this issue Apr 12, 2021 · 1 comment
Open

Remote: Unhandled error #107

MidoMiddle opened this issue Apr 12, 2021 · 1 comment

Comments

@MidoMiddle
Copy link

MidoMiddle commented Apr 12, 2021

OS: BigSur 11.2.3
node v15.14.0

19:05:21  W2   info    Listen port 8001 in worker 2
19:05:21  W1   info    Listen port 8000 in worker 1
19:05:21  W3   info    Listen port 8002 in worker 3
19:05:21  W1   debug   Start example plugin
19:05:21  W1   debug   { set: { key: 'keyName', val: 100 } }
19:05:21  W1   debug   { get: 'keyName', return: 100 }
19:05:21  W1   debug   { res: 100, cache: undefined }
19:05:21  W1   debug   Connect to redis
19:05:21  W1   debug   Connect to pg
19:05:21  W1   warn    No redis service detected, so quit client
19:05:21  W1   debug   Connect to metacom
19:05:22  W5   error   Error [ERR_UNHANDLED_ERROR]: Unhandled error. (ErrorEvent {
  target: WebSocket {
    _events: [Object: null prototype] { message: [Function], error: [Array] },
    _eventsCount: 2,
    _maxListeners: undefined,
    _binaryType: 'nodebuffer',
    _closeCode: 1006,
    _closeFrameReceived: false,
    _closeFrameSent: false,
    _closeMessage: '',
    _closeTimer: null,
    _extensions: {},
    _protocol: '',
    _readyState: 2,
    _receiver: null,
    _sender: null,
    _socket: null,
    _bufferedAmount: 0,
    _isServer: false,
    _redirects: 0,
    _url: 'ws://localhost:8001',
    _req: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 5,
      _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,
      _closed: false,
      socket: [Socket],
      _header: 'GET / HTTP/1.1\r\n' +
        'Sec-WebSocket-Version: 13\r\n' +
        'Sec-WebSocket-Key: a3Nqj19jf3Be5inH15p34Q==\r\n' +
        'Connection: Upgrade\r\n' +
        'Upgrade: websocket\r\n' +
        'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n' +
        'Host: localhost:8001\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: {},
      agent: undefined,
      socketPath: undefined,
      method: 'GET',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/',
      _ended: false,
      res: [IncomingMessage],
      aborted: true,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: [HTTPParser],
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'localhost',
      protocol: 'http:',
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype],
      [Symbol(kError)]: undefined
    },
    [Symbol(kCapture)]: false
  },
  type: 'error',
  message: 'Unexpected server response: 200',
  error: Error: Unexpected server response: 200
    ClientRequest.<anonymous> (/node_modules/ws/lib/websocket.js:604:7)
    ClientRequest.emit (node:events:369:20)
    HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:646:27)
    HTTPParser.parserOnHeadersComplete (node:_http_common:129:17)
    Socket.socketOnData (node:_http_client:512:22)
    Socket.emit (node:events:369:20)
    addChunk (node:internal/streams/readable:313:12)
    readableAddChunk (node:internal/streams/readable:288:9)
    Socket.Readable.push (node:internal/streams/readable:227:10)
    TCP.onStreamRead (node:internal/stream_base_commons:190:23)
})
  new NodeError (node:internal/errors:329:5)
  Metacom.emit (node:events:358:17)
  WebSocket.<anonymous> (/node_modules/metacom/lib/client.js:59:12)
  WebSocket.onError (/node_modules/ws/lib/event-target.js:140:16)
  WebSocket.emit (node:events:381:22)
  abortHandshake (/node_modules/ws/lib/websocket.js:722:15)
  ClientRequest.<anonymous> (/node_modules/ws/lib/websocket.js:604:7)
  ClientRequest.emit (node:events:369:20)
  HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:646:27)
  HTTPParser.parserOnHeadersComplete (node:_http_common:129:17)
user@MacBook-Air Example % 
@MidoMiddle
Copy link
Author

MidoMiddle commented Apr 12, 2021

I commented application/config/remote.js and next error

21:44:40  W2   info    Listen port 8001 in worker 2
21:44:40  W1   info    Listen port 8000 in worker 1
21:44:40  W3   info    Listen port 8002 in worker 3
21:44:40  W1   debug   Start example plugin
21:44:40  W1   debug   { set: { key: 'keyName', val: 100 } }
21:44:40  W1   debug   { get: 'keyName', return: 100 }
21:44:40  W1   debug   { res: 100, cache: undefined }
21:44:40  W1   debug   Connect to redis
21:44:40  W1   debug   Connect to pg
21:44:40  W1   warn    No redis service detected, so quit client
21:44:40  W2   error   TypeError [ERR_INVALID_URL]: Invalid URL: undefined
  onParseError (internal/url.js:259:9)
  new URL (internal/url.js:335:5)
  initAsClient (/node_modules/ws/lib/websocket.js:502:17)
  new WebSocket (/node_modules/ws/lib/websocket.js:71:7)
  new Metacom (/node_modules/metacom/lib/client.js:37:19)
  Object.<anonymous> (/application/domain/remote/start.js:8:19)
21:44:40  W2   info    Application started in worker 2
21:44:40  W4   error   TypeError [ERR_INVALID_URL]: Invalid URL: undefined
  onParseError (internal/url.js:259:9)
  new URL (internal/url.js:335:5)
  initAsClient (/node_modules/ws/lib/websocket.js:502:17)
  new WebSocket (/node_modules/ws/lib/websocket.js:71:7)
  new Metacom (/node_modules/metacom/lib/client.js:37:19)
  Object.<anonymous> (/application/domain/remote/start.js:8:19)
21:44:40  W1   debug   Connect to metacom
21:44:40  W4   info    Application started in worker 4
21:44:40  W3   error   TypeError [ERR_INVALID_URL]: Invalid URL: undefined
  onParseError (internal/url.js:259:9)
  new URL (internal/url.js:335:5)
  initAsClient (/node_modules/ws/lib/websocket.js:502:17)
  new WebSocket (/node_modules/ws/lib/websocket.js:71:7)
  new Metacom (/node_modules/metacom/lib/client.js:37:19)
  Object.<anonymous> (/application/domain/remote/start.js:8:19)
21:44:40  W1   error   TypeError [ERR_INVALID_URL]: Invalid URL: undefined
  onParseError (internal/url.js:259:9)
  new URL (internal/url.js:335:5)
  initAsClient (/node_modules/ws/lib/websocket.js:502:17)
  new WebSocket (/node_modules/ws/lib/websocket.js:71:7)
  new Metacom (/node_modules/metacom/lib/client.js:37:19)
  Object.<anonymous> (/application/domain/remote/start.js:8:19)
21:44:40  W1   info    Application started in worker 1
21:44:40  W3   info    Application started in worker 3
21:44:40  W5   error   TypeError [ERR_INVALID_URL]: Invalid URL: undefined
  onParseError (internal/url.js:259:9)
  new URL (internal/url.js:335:5)
  initAsClient (/node_modules/ws/lib/websocket.js:502:17)
  new WebSocket (/node_modules/ws/lib/websocket.js:71:7)
  new Metacom (/node_modules/metacom/lib/client.js:37:19)
  Object.<anonymous> (/application/domain/remote/start.js:8:19)
21:44:40  W5   info    Application started in worker 5

@MidoMiddle MidoMiddle changed the title Apple M1 Unhandled error Remote: Unhandled error Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant