Twitter Streaming

Once it's running
zulbichaq
Posts:2
Joined:13 Aug 2017 09:48
[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

Post by zulbichaq » 13 Aug 2017 09:52

hi, guys
this is what i get

[Sun Aug 13 15:51:34 ICT 2017]Establishing connection.
[Sun Aug 13 15:51:38 ICT 2017]406:Returned by the Search API when an invalid format is specified in the request.
Returned by the Streaming API when one or more of the parameters are not suitable for the resource. The track parameter, for example, would throw this error if:
The track keyword is too long or too short.
The bounding box specified is invalid.
No predicates defined for filtered resource, for example, neither track nor follow parameter defined.
Follow userid cannot be read.
No filter parameters found. Expect at least one parameter: follow track locations

406:Returned by the Search API when an invalid format is specified in the request.
[Sun Aug 13 15:51:38 ICT 2017]Parameter not accepted with the role. 406:Returned by the Search API when an invalid format is specified in the request.
Returned by the Streaming API when one or more of the parameters are not suitable for the resource. The track parameter, for example, would throw this error if:
Returned by the Streaming API when one or more of the parameters are not suitable for the resource. The track parameter, for example, would throw this error if:
The track keyword is too long or too short.
The track keyword is too long or too short.
The bounding box specified is invalid.
The bounding box specified is invalid.
No predicates defined for filtered resource, for example, neither track nor follow parameter defined.
No predicates defined for filtered resource, for example, neither track nor follow parameter defined.
Follow userid cannot be read.
No filter parameters found. Expect at least one parameter: follow track locations
Follow userid cannot be read.

No filter parameters found. Expect at least one parameter: follow track locations
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=406, message=null, code=-1, retryAfter=-1, rateLimitStatus=null, version=4.0.6}
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)
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" org.apache.kafka.common.config.ConfigException: Invalid value org.apache.kafka.common.serializa-tion.StringSerializer for configuration value.serializer: Class org.apache.kafka.common.serializa-tion.StringSerializer could not be found.
at org.apache.kafka.common.config.ConfigDef.parseType(ConfigDef.java:255)
at org.apache.kafka.common.config.ConfigDef.parse(ConfigDef.java:145)
at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:49)
at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:56)
at org.apache.kafka.clients.producer.ProducerConfig.<init>(ProducerConfig.java:315)
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:181)
at kafkaStream.KafkaTwitterProducer.main(KafkaTwitterProducer.java:119)

did you know what's the way to solved that ??
thx

User avatar
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

Post by eduramiba » 13 Aug 2017 12:04

Did you configure the twitter credentials correctly? Make sure no trailing spaces etc https://seinecle.github.io/gephi-tutori ... er-en.html

zulbichaq
Posts:2
Joined:13 Aug 2017 09:48
[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

Post by zulbichaq » 14 Aug 2017 03:33

okaay, thanks a lot :)

Post Reply
[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