question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

client.join() returning No response from Twitch.

See original GitHub issue

My 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:closed
  • Created 4 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
TheApexDevilcommented, Jan 12, 2022

So I’m getting the same error error: No response from Twitch. after the Executing command: JOIN #[channel] with only one twitch channel (mine).

Here’s my config:

import { client } from 'tmi.js';

const opts = {
  identity: {
    username: process.env.BOT_USERNAME,
    password: process.env.BOT_OAUTH_TOKEN
  },
  channels: [
    process.env.CHANNEL_NAME
  ]
}

const cli = new client(opts);

cli.connect();

I’ve no clue of why it’s not working so just gonna check the future comments of the issue

change cli.connect(); to client.connect();

5reactions
AlcaDesigncommented, Jun 6, 2019

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.

var client = tmi.client({
    ...
    channels: [
        'dunaaas','xqcow' ,'sattelizergames' ,'summit1g' ,'gaules' ,
        'jovirone' ,'elded' ,'scarra', ...
    ],
    ...
});
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found