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

Cannot read properties of undefined #420

Open
Kasper77 opened this issue Jun 13, 2024 · 0 comments
Open

Cannot read properties of undefined #420

Kasper77 opened this issue Jun 13, 2024 · 0 comments

Comments

@Kasper77
Copy link

Kasper77 commented Jun 13, 2024

Issue: Cannot read properties of undefined (reading 'idle_time_out').
We have a service running and randomly crashes (last time after a week it was running).

rhea: 3.0.2
Node.Js: 18

stack trace:

Error: Unhandled error. ({
  _context: TypeError: Cannot read properties of undefined (reading 'idle_time_out')
      at Connection.output (/common/temp/node_modules/.pnpm/[email protected]/node_modules/rhea/lib/connection.js:513:59)
      at Connection.input (/common/temp/node_modules/.pnpm/[email protected]/node_modules/rhea/lib/connection.js:581:18)
      at TLSSocket.emit (node:events:517:28)
      at addChunk (node:internal/streams/readable:368:12)
      at readableAddChunk (node:internal/streams/readable:341:9)
      at TLSSocket.Readable.push (node:internal/streams/readable:278:10)
      at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
      at TLSWrap.callbackTrampoline (node:internal/async_hooks:128:17),
  connection: CoreAmqpConnection {
    _events: [Object: null prototype] {},
    _eventsCount: 0,
    _maxListeners: undefined,
    actionInitiated: 0,
    _connection: Connection {
      options: [Object],
      container: undefined,
      registered: false,
      state: [EndpointState],
      local_channel_map: {},
      remote_channel_map: {},
      local: [Object],
      remote: {},
      session_policy: [Object],
      amqp_transport: [Transport],
      sasl_transport: [SaslClient],
      transport: [SaslClient],
      conn_established_counter: 2,
      heartbeat_out: undefined,
      heartbeat_in: undefined,
      abort_idle: undefined,
      socket_ready: false,
      scheduled_reconnect: undefined,
      default_sender: undefined,
      closed_with_non_fatal_error: false,
      _events: [Object: null prototype],
      _eventsCount: 13,
      _maxListeners: 1000,
      is_server: false,
      socket: [TLSSocket],
      saved_error: TypeError: Cannot read properties of undefined (reading 'idle_time_out')
          at Connection.output (/common/temp/node_modules/.pnpm/[email protected]/node_modules/rhea/lib/connection.js:513:59)
          at Connection.input (/common/temp/node_modules/.pnpm/[email protected]/node_modules/rhea/lib/connection.js:581:18)
          at TLSSocket.emit (node:events:517:28)
          at addChunk (node:internal/streams/readable:368:12)
          at readableAddChunk (node:internal/streams/readable:341:9)
          at TLSSocket.Readable.push (node:internal/streams/readable:278:10)
          at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
          at TLSWrap.callbackTrampoline (node:internal/async_hooks:128:17)
    },
    container: Container {
      _events: [Object: null prototype] {},
      _eventsCount: 0,
      _maxListeners: undefined,
      _container: [Container],
      options: [Object],
      [Symbol(kCapture)]: false
    },
    options: {
      transport: 'tls',
      host: 'XXXXXXXXXX',
      hostname: 'XXXXXXXXXX',
      username: 'XXXXXXXXXXXXXX',
      port: 5671,
      reconnect: false,
      properties: [Object],
      idle_time_out: 60000,
      operationTimeoutInSeconds: 60,
      servername: 'XXXXXXXXXXXX',
      id: 'connection-20',
      container_id: 'XXXXXXXXXXXXXXXXXX',
      connection_details: [Function (anonymous)]
    },
    [Symbol(kCapture)]: false
  },
  container: Container {
    _events: [Object: null prototype] {},
    _eventsCount: 0,
    _maxListeners: undefined,
    _container: Container {
      options: [Object],
      id: 'XXXXXXXXXXXXXXXXXXXX',
      sasl_server_mechanisms: {}
    },
    options: { id: 'XXXXXXXXXXXXXXXXXXXXXXX' },
    [Symbol(kCapture)]: false
  }
})
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