client.join() returning No response from Twitch.
See original GitHub issueMy code
var channels = ['xqcow' ,'sattelizergames' ,'summit1g' ,'gaules' ,'jovirone' ,'elded' ,'scarra' ...]
var client = tmi.client({
options: {debug: false},
connection: {reconnect: true, secure: true},
channels: ['dunaaas'],
identity: {username: "username",password: "oauth"}
});
client.on('connected', function(address, port) {
console.log("Address: " + address + " Port: " + port);
console.log(`connected channels: ${client.getOptions().channels.length}`);
b();
});
function b(){
if(channels[0] != undefined){
client.join(channels[0]).then(function(data) {
console.log(data);
channels.shift();
b();
}).catch(function(err) {console.log(err)});
}
else{
}
}
Actual behaviour: Returning error when try connect in many channels using client.join()
Expected behaviour: Don’t return No response from Twitch.
Error
No response from Twitch.
Server configuration
- Operating system: Windows 7
- Node version (if applicable): 10.15.3
- NPM version (if applicable): 10.15.3
- tmi.js version: 1.4.2
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
I an trying to join multiple twitch channels but i keep getting ...
I an trying to join multiple twitch channels but i keep getting this code Error : no response from twitch.
Read more >First timer - Getting 'No response from Twitch' - API
Hi, newbie here. I'm following the twitch guide on IRC. https://dev.twitch.tv/docs/irc. Have done everything right so far, but upon running ...
Read more >Connects, but then error: No response from Twitch
First timer here. I'm following the guide at Getting Started | Twitch Developers My code looks like this: const tmi = require('tmi.js'); ...
Read more >Twitch keeps giving me the error "No response from Twitch."
I'm working on an app that requires me to look at the top X amount of channels, sorted by views. When joining the...
Read more >Email not returned with GetUsers - API
login streams live on Twitch! Check out their videos, sign up to chat, and join their community.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
change cli.connect(); to client.connect();
You’re probably joining too many channels in the allotted time. (20 commands per 30 seconds for normal accounts) Why not just use the auto-joiner? You already have 1 channel in the client option’s
channels
array.