twitter / hbc

A Java HTTP client for consuming Twitter's realtime Streaming API
https://developer.twitter.com/en/docs/tweets/filter-realtime/overview
Apache License 2.0
962 stars 373 forks source link

Connection Failure. #202

Closed irudrasingh closed 2 years ago

irudrasingh commented 4 years ago

This is the Error message.

INFO com.twitter.hbc.httpclient.BasicClient - New connection executed: Rudra-twitter, endpoint: /1.1/statuses/filter.json?delimited=length&stall_warnings=true Exception in thread "main" java.lang.IllegalStateException: There is already a connection thread running for Rudra-twitter, endpoint: /1.1/statuses/filter.json?delimited=length&stall_warnings=true

sburkard commented 3 years ago

Just stumbled over this issue.

I had the same error message once when I accidentally did client.connect(); two times because I was in a refactoring.

Check if you connect the client more than once.