[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •Twitter Streaming
Page 1 of 2

Twitter Streaming

Posted: 05 Jan 2017 21:50
by atabek
Twitter Streaming is not functioning. It used to work fine previously but now it does not wor. Even if I change twitter api account, no help. It connects but no streaming. Any idea?

Re: Twitter Streaming

Posted: 05 Jan 2017 22:09
by eduramiba
Do you get an exception?
It's working fine for me.

Are you sure there is new data for your criteria at the moment?

Re: Twitter Streaming

Posted: 06 Jan 2017 14:20
by atabek
This is what I get:

401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync.
<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n<title>Error 401 Unauthorized</title>
</head>
<body>
<h2>HTTP ERROR: 401</h2>
<p>Problem accessing '/1.1/statuses/filter.json'. Reason:
<pre> Unauthorized</pre>
</body>
</html>

Relevant discussions can be found on the Internet at:
http://www.google.co.jp/search?q=1169356e or
http://www.google.co.jp/search?q=c3c376ff
TwitterException{exceptionCode=[1169356e-c3c376ff], statusCode=401, message=null, code=-1, retryAfter=-1, rateLimitStatus=null, version=4.0.5}
at twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:164)
at twitter4j.HttpClientBase.request(HttpClientBase.java:57)
at twitter4j.HttpClientBase.post(HttpClientBase.java:86)
at twitter4j.TwitterStreamImpl.getFilterStream(TwitterStreamImpl.java:347)
at twitter4j.TwitterStreamImpl$8.getStream(TwitterStreamImpl.java:323)
at twitter4j.TwitterStreamImpl$TwitterStreamConsumer.run(TwitterStreamImpl.java:554)
Caused: java.lang.UnsupportedOperationException
at totetmatt.gephi.twitter.TwitterStreamer$1.accept(TwitterStreamer.java:128)
at totetmatt.gephi.twitter.TwitterStreamer$1.accept(TwitterStreamer.java:124)
at twitter4j.TwitterStreamImpl$10.onException(TwitterStreamImpl.java:434)
[catch] at twitter4j.TwitterStreamImpl$TwitterStreamConsumer.run(TwitterStreamImpl.java:635)

Re: Twitter Streaming

Posted: 06 Jan 2017 14:42
by eduramiba
Did you set all your credentials correctly? (Credentials dialog). They are mandatory.

Re: Twitter Streaming

Posted: 06 Jan 2017 15:08
by atabek
May this is the reason (from https://dev.twitter.com/streaming/public)
"Each account may create only one standing connection to the public endpoints, and connecting to a public stream more than once with the same account credentials will cause the oldest connection to be disconnected.
Clients which make excessive connection attempts (both successful and unsuccessful) run the risk of having their IP automatically banned."

I can connect and stream twits from my office PC with the same api token and account, but not from my home PC!

Re: Twitter Streaming

Posted: 06 Jan 2017 15:22
by eduramiba
Oh, probably.
Maybe you can create several credentials.

Re: Twitter Streaming

Posted: 06 Jan 2017 18:02
by atabek
Still no solution! There is in any problem with api credentials (even if created a new one), I can use it in my office PC. But when I try to connect and stream with my home PC, I get nothing!

Re: Twitter Streaming

Posted: 06 Jan 2017 18:04
by eduramiba
Typical problems in networking might be:
  • Incorrect time in your pc (try to synchronize it)
  • A network proxy
  • An antivirus doing something wrong

Re: Twitter Streaming

Posted: 06 Jan 2017 21:08
by atabek
Yes you are absolutely right: "Incorrect time in your pc (try to synchronize it)"
I syncronized my pc clock and it's OK!
Thank you very mucch for your quick and correct solution...

Re: Twitter Streaming

Posted: 06 Jan 2017 22:23
by eduramiba
Awesome! :)