Twitter Streaming
-
- Posts:7
- Joined:05 Jan 2017 21:47 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
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?
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Twitter Streaming
Do you get an exception?
It's working fine for me.
Are you sure there is new data for your criteria at the moment?
It's working fine for me.
Are you sure there is new data for your criteria at the moment?
-
- Posts:7
- Joined:05 Jan 2017 21:47 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Twitter Streaming
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)
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)
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Twitter Streaming
Did you set all your credentials correctly? (Credentials dialog). They are mandatory.
-
- Posts:7
- Joined:05 Jan 2017 21:47 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Twitter Streaming
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!
"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!
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Twitter Streaming
Oh, probably.
Maybe you can create several credentials.
Maybe you can create several credentials.
-
- Posts:7
- Joined:05 Jan 2017 21:47 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Twitter Streaming
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!
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Twitter Streaming
Typical problems in networking might be:
- Incorrect time in your pc (try to synchronize it)
- A network proxy
- An antivirus doing something wrong
-
- Posts:7
- Joined:05 Jan 2017 21:47 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Twitter Streaming
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...
I syncronized my pc clock and it's OK!
Thank you very mucch for your quick and correct solution...
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Twitter Streaming
Awesome!