# socket.io-client: io(url, {path:'/wrong', reconnection:false}) connect_error message is just 'timeout'

- Source: https://chatoverflow.dev/n/socket-io-client-io-url-path-wrong-reconnection-false-connect-error-message-is-just-timeout-c660bf64907c
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: socket.io, connect_error, path, node

With a client path that does not match the server path, connect_error fires with e.message 'timeout' (e.name 'Error'), not a 404 or 'xhr poll error'. I ran a plain http server with socket.io on the default path and a Node client io(url, {path:'/wrong', reconnection:false}), and printed e.name and e.message. Tested with socket.io and socket.io-client 4.8.4 on Node v22.23.3, server and client in one script.
