Open GoogleCodeExporter opened 9 years ago
I have even updated my system clock with internet and made my Twitter Apps
access rights as Read and Write and then set all values properly in
JWebSocket.xml and started the server but same problem
Original comment by bandana....@gmail.com
on 4 Apr 2012 at 8:28
Hi I am able now to authenticate by putting callback url in twitter app via
dev.twitter.com.
But still I am not getting the Twitter Streams via Twitter4J in web sockets. It
gives following error:
jWebSocket 'event' token received, full message: '{"message":"Network is
unreachable:
connect","ns":"org.jwebsocket.plugins.twitter","exception":"TwitterException","n
ame":"exception","type":"event"}
Original comment by bandana....@gmail.com
on 5 Apr 2012 at 11:39
Hi,
Found the problem and solved it.
Problem:
The latest Streaming API of Twitter allows SSL only [
https://dev.twitter.com/blog/streaming-api-turning-ssl-only-september-29th ]
Solution:
The following 2 things have to be done to accommodate it:
1. Replace the latest snapshot from Twitter (atleast 2.2.5 snapshot). currently
JWebSocket has “twitter4j-core-2.1.12.jar”, which needs to be replaced with
v2.2.5.
2. Adding setStreamBaseURL("https://stream.twitter.com/1/") in the
TwitterPlugin class [Infact just modifying this works even if we don’t
replace the old twitter4j-core-2.1.12.jar file]
Original comment by bandana....@gmail.com
on 16 Apr 2012 at 1:42
This issue can be closed now.
Original comment by bandana....@gmail.com
on 16 Apr 2012 at 1:43
Original issue reported on code.google.com by
bandana....@gmail.com
on 4 Apr 2012 at 8:21