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.

After "Connected to server.", receiving chat works, but sending gives "Not connected to server."

See original GitHub issue

Actual behaviour: When registering a ‘chat’ event, chat messages are received correctly. But using any client commands like client.say throws an error (the Promise’s catch spits out “Not connected to server.”)

I did use an oauth password with my bot account, username is all lowercase (I have setup two accounts, one for myself, one for this bot - both using the same email address… could that be a problem?).

Screenshot of TMI.js error

Expected behaviour: The bot should be able to send the message to the chat.

Server configuration

  • Operating system: Windows 7
  • Node version (if applicable): 4.4.7
  • NPM version (if applicable): 2.15.8
  • tmi.js version: 1.1.2
  • Worth noting: Using ‘yarn’ to manage the modules.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chamberlainpicommented, Jan 10, 2017

I think I just found it… oh god I feel so dumb…

Seriously.... idendity, what was I thinking

4am, I probably should go to bed. 💤

Apologies for bringing up this false alarm!

0reactions
chamberlainpicommented, Jan 10, 2017

Thanks for your help.

Yeah I couldn’t understand why I could make the connection, but not the authentication. Using idendity over identity would certainly break something.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ServerSocket is connected with Client socket....but server is ...
I am making a simple chat program in java....i cant find the source problem in client side code ....i also has tested the...
Read more >
VoIP Troubleshooting: 5 Fixes for Common Connection Issues
Is your VoIP phone not working? In this VoIP troubleshooting guide, learn how to fix common VoIP issues and know why they happen....
Read more >
Can't turn on chat features - Messages Help - Google Support
If you're not connected, tap Retry. Important: All people in a conversation (1-1 or group) must have chat features turned on. Check your...
Read more >
How to Fix Discord Connection Issues - Lifewire
15 quick fixes for when Discord is not working or connecting on iPhone, iPad, Android, Windows, and Mac. Plus, what causes Discord ...
Read more >
FIX: Omegle error connecting to server [Updated Guide]
Since your network might be at fault, try connecting from another one. You can also use a reliable VPN that will not get...
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