-
Notifications
You must be signed in to change notification settings - Fork 19
unhandled proxy ECONNREFUSED #6
Comments
Are you handling the |
doesnt help |
I'm pretty sure
The problem is obviously caused by the proxy which drops / refuses connection. Temporary solution is to fix the proxy service, although it would be nice if we could handle it properly.
Handlers set as following:
I just noticed the handler (currently can't say which one, as it was logging only In cm_client.js#L105 |
i have proxies from third party provider so i cannot really "fix" them.. so i can use the steamclient.on('error', handleClientError); to catch the error and then reconnect the acc again to the steam? |
You can get better proxies, that doesn't refuse the connection. |
could you recommend any proxy provider? thanks |
Moving Tested on Moving the Test code: const SteamClient = require('steam-client');
const SteamUser = require('steam-user');
const client = new SteamClient.CMClient();
client.setHttpProxy('http://timeouting-proxy');
const user = new SteamUser(client);
client.on('error', (...data) => console.log('client-error', ...data));
client.on('debug', (...data) => console.log('client-debug', ...data));
user.on('error', (...data) => console.log('user-error', ...data));
user.logOn({ accountName: 'XXX', password: 'XXX' }); |
That works! Any advice how to properly handle this? Thank you very much.
|
Is it possible to somehow handle this error?? If the proxy server doesnt respond the client crashes.
my code:
also
The text was updated successfully, but these errors were encountered: