shout icon indicating copy to clipboard operation
shout copied to clipboard

Disconnect Error - ./plugins/inputs/part: TypeError: Cannot read property 'type' of undefined

Open JohnMcLear opened this issue 9 years ago • 12 comments

./plugins/inputs/part: TypeError: Cannot read property 'type' of undefined
Client#connect():
Error: This socket has been ended by the other party
Client#connect():
Error: read ECONNRESET

Have to restart Shout to get it to work..

Lose all my history/logs :(

JohnMcLear avatar May 05 '15 12:05 JohnMcLear

Sorry about that :(

Does it happen to you often?

I've never seen it happen before, so I'm not sure how to test it. Got some more info about what might have caused it?

erming avatar May 05 '15 20:05 erming

Most nights, I think it's an IRC disconnect message. Not sure though ;\ I'm connected to 3 IRC servers so I wonder if it's due to multiple servers?

JohnMcLear avatar May 05 '15 22:05 JohnMcLear

I don't think it's because you being connected to multiple servers, but rather that one of the servers emits IRC-messages that isn't being parsed correctly.

For example (this is just made up, as an example): :irc.freenode.org part erming :#chan vs :irc.freenode.org part erming #chan

In the second example, there's a missing colon, which completely screws the parsing of that message. While that was just a made up example, I've had issues parsing some types of messages like that before. It's fixable, but I just need to know the format.

Of course, this is just a guess.. But if you could quickly connect to your servers, one by one, and then try to provoke this error to find which one is faulty, that would be great!

erming avatar May 07 '15 09:05 erming

Sadly the error didn't fire last night.

Is there any way to run in debug mode so I can evaluate each connection etc?

JohnMcLear avatar May 07 '15 09:05 JohnMcLear

Yep, there is! Run it like this: DEBUG=slate-irc ./index.js --port 8080

It will display all the original messages that the IRC networks send.

erming avatar May 12 '15 21:05 erming

Haven't had the error in a few days so will wait until it fires again then run this :)

JohnMcLear avatar May 12 '15 21:05 JohnMcLear

./plugins/inputs/part: TypeError: Cannot read property 'type' of undefined
Client#connect():
Error: This socket has been ended by the other party
Client#connect():
Error: read ECONNRESET
Client#connect():
Error: write after end
Client#connect():
Error: socket hang up
Client#connect():
Error: This socket has been ended by the other party

Happens if I use twitch IRC servers. Enabling debug now =-) Stay Frosty.

Debug enabled, results to follow w/ in 48 hours.

JohnMcLear avatar May 13 '15 23:05 JohnMcLear


  slate-irc message PART :[email protected] PART #anzleon +0ms
  slate-irc message PART :[email protected] PART #anzleon +1ms
  slate-irc message PART :[email protected] PART #anzleon +1ms
  slate-irc message PART :[email protected] PART #anzleon +175ms
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :act? +4s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon : ͡° ͜ʖ ͡°)╯╲___卐卐卐卐 Don't mind me just taking mods for a walk! +1s
  slate-irc message PRIVMSG :jjay_lol!jjay_lol@jjay_lol.tmi.twitch.tv PRIVMSG #anzleon :( ͡° ͜ʖ ͡°)╯╲___卐卐卐卐 Don't mind me just taking mods for a walk! +11s
  slate-irc message PING PING :weber.freenode.net +7s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :the mods arent nazis guys +2s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :they're worse Kappa +8s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :ive never been t/o'd here ever before +1s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :guys +3s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :hey viewers ! leave the mods alone ( ° ͜ʖ͡°)╭∩╮ +2s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :do i learn signal beam or nah? +5s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :i cant make up my mind +6s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :i dont even remember what signal beam does +5s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :no +3s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :ask your professor oak +4s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :why would you ever learn signal beam +2s
  slate-irc message PART :[email protected] PART #babayetu_ +5s
  slate-irc message JOIN :nubzy_cl!nubzy_cl@nubzy_cl.tmi.twitch.tv JOIN #anzleon +585ms
  slate-irc message JOIN :[email protected] JOIN #anzleon +4ms
  slate-irc message JOIN :[email protected] JOIN #anzleon +2ms
  slate-irc message JOIN :[email protected] JOIN #anzleon +1ms
  slate-irc message JOIN :the_young_squire!the_young_squire@the_young_squire.tmi.twitch.tv JOIN #anzleon +1ms
  slate-irc message JOIN :[email protected] JOIN #anzleon +3ms
  slate-irc message JOIN :[email protected] JOIN #anzleon +1ms
  slate-irc message JOIN :[email protected] JOIN #anzleon +1ms
  slate-irc message JOIN :smarticus_maximus!smarticus_maximus@smarticus_maximus.tmi.twitch.tv JOIN #anzleon +1ms
  slate-irc message JOIN :[email protected] JOIN #anzleon +2ms
  slate-irc message JOIN :[email protected] JOIN #anzleon +169ms
  slate-irc message PART :[email protected] PART #anzleon +2ms
  slate-irc message PART :akkara_is_a_koala!akkara_is_a_koala@akkara_is_a_koala.tmi.twitch.tv PART #anzleon +1ms
  slate-irc message PART :[email protected] PART #anzleon +0ms
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :idk +1ms
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :what poke +193ms
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :bug stab is garbage +5s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :ampharos +418ms
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :fuck that +3s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :no +1s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :k +2s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :the mods arent nayisß then why is matas promoting white supremacy with his name? Keepo +3s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :Keepo +13s
  slate-irc message PRIVMSG :[email protected] PRIVMSG #anzleon :( ͡° ͜ʖ ͡°)╯╲___0 Don't mind me just taking arv's longwar playthrough finishes for a walk! +7s
  slate-irc message PING PING :weber.freenode.net +54s
Client#connect():
Error: read ETIMEDOUT
Client#connect():
Error: read ECONNRESET

Hope this helps.. I don't see anything obviously.... Perhaps server timeout then failure to reconnect given X seconds?

JohnMcLear avatar May 14 '15 21:05 JohnMcLear

I had same problem - it is pure irc session/ip limit issue (at least on my side it was) You need to change your ircd/services conf file ircd: allow { ip *@chat.host; class clients; maxperip 300;//how many max clients };

i operserv conf file: module { name = "os_session" ********* maxsessionlimit = 300 //how many max clients

Then it will be ok. Ofcourse this is in case you use own ircd server, otherwise look for irc admin.

lutsifer avatar Dec 20 '16 11:12 lutsifer

btw I have open irc server, if you need you can contact me to setup host connection for you.

lutsifer avatar Dec 20 '16 11:12 lutsifer

That's most likely fixed in https://github.com/thelounge/lounge

xPaw avatar Dec 23 '16 10:12 xPaw

I guess so but I already customized this one:)

lutsifer avatar Dec 23 '16 10:12 lutsifer