skype-http icon indicating copy to clipboard operation
skype-http copied to clipboard

lots of ECONNRESET issues

Open mitchcapper opened this issue 7 years ago • 5 comments

Looking at the logs it seems that in april this would happen at a maximum a few times a day (and on average maybe once every few days) "An error happened while processing the polled messages": Error: read ECONNRESET at exports._errnoException (util.js:1050:11) at TLSWrap.onread (net.js:581:26)

However recently it has become near constant. Upon connect it can almost certainly occur (sometimes during the login itself). Reconnecting right away using the new token also fails falling back to user/pass.

Using a proxy through the same server the web client does not exhibit similar behavior (all poll requests are successful).

mitchcapper avatar Jun 14 '18 22:06 mitchcapper

Same thing for me. All bots became almost unusable :(

n3tman avatar Jun 23 '18 01:06 n3tman

So after trying to solve these ECONNRESET issues I decided to switch to Microsoft Bot API and it works without a single error. Couldn't be happier with it, and it's all free too. If you only need Skype, you won't need to switch to Azure, just remove Web Chat and add Skype channel.

Create your bot here: https://dev.botframework.com/bots/new

All I needed to do is save address of each channel (used typicode/lowdb for this task): https://docs.microsoft.com/en-us/azure/bot-service/nodejs/bot-builder-nodejs-proactive-messages

n3tman avatar Jul 07 '18 10:07 n3tman

Unfortunately bots can't work with existing users or share a user account (for example to only handle certain messages directly). For others though it may be a good fit. I am guessing the issue came about when they did the revision for read receipts. Unfortunately, I have yet to find a full solution to this bug.

mitchcapper avatar Jul 07 '18 14:07 mitchcapper

Alright so after updating everything fully clearing all state data (this seemed to cause an issue) I was able to avoid this problem and get good connections again. May want to use PR #112 to assist with running latest version of libs.

mitchcapper avatar Nov 26 '18 17:11 mitchcapper

Sadly this issue still persists. Will have to try proxying some connections to detect the difference. Not as bad as before but still get a few a day.

mitchcapper avatar Nov 26 '18 23:11 mitchcapper