Troubleshooting timeout with pages. Understanding the issue

I am a novice programmer, developing a small app. This app creates an SSH tunnel to a MySQL database. I can run the app on my localhost:port, but I receive an error while running the site via render. I’m using NodeJS, Express and such. The error looks as such…

  events.js:353
        throw er; // Unhandled 'error' event
        ^
  
  Error: Timed out while waiting for handshake
      at Timeout._onTimeout (/opt/render/project/src/CS320_V01/node_modules/ssh2/lib/client.js:1116:23)
      at listOnTimeout (internal/timers.js:555:17)
      at processTimers (internal/timers.js:498:7)
  Emitted 'error' event on Client instance at:
      at Timeout._onTimeout (/opt/render/project/src/CS320_V01/node_modules/ssh2/lib/client.js:1118:16)
      at listOnTimeout (internal/timers.js:555:17)
      at processTimers (internal/timers.js:498:7) {
    level: 'client-timeout'
  }

I’m curious if there is a way I can identify the issue through this error message.

Hi,

I’m not familiar with the ssh2 package, but from a quick search, it appears you may be able to use the debug option to output more details, e.g.: https://github.com/mscdex/ssh2/issues/142

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.