Closed devolution2409 closed 5 years ago
I am only just starting to get the same thing. Works on CentOS, does not work on Windows 10.
Note that just before the error, I get a console log: error: Could not connect to server. Reconnecting in 2 seconds...
I get the same TypeError that devolution gets.
EDIT: Turns out it was my work's network blocking the connection.
@MrDrummer Glad it works for you, never worked for me again after that so i switched to twich-js
Could anyone make a quick test using tmi.js@1.3.x
? (And/or possibly with the current repo? (1.4))
From NPM: (1.3)
$ npm install tmi.js@1.3
or from Github: (upcoming 1.4)
$ npm install tmijs/tmi.js#1a55b00
I haven't been able to replicate this error myself, but here's a quick base that you can copy-paste if it'll help. š
const tmi = require('tmi.js');
let client = new tmi.Client({
options: { debug: true },
identity: {
username: '',
password: ''
}
});
client.connect();
Actual behaviour: Can't login on twich irc chat
Expected behaviour: To be able to log in
Error log:
Server configuration
I kinda think the error is related to the websocket component of tmi, namely ws, it seems that npm pull an old version, that doesn't work as of today.
I tried swapping the websocket npm install by the latest version of ws.
The error is then gone, however, i can't never connect even tho my username and OAUTH token are good.