Restricting api.twitter.com to SSL/TLS traffic

lfcipriani
@lfcipriani Luis Cipriani

This is an important notice for developers still using HTTP plaintext connections. On January 14th, 2014, connections to api.twitter.com will be restricted to TLS/SSL connections only. If your application still uses HTTP plaintext connections you will need to update it to use HTTPS connections, otherwise your app will stop functioning. You don't need to wait until deadline to implement this change, given that api.twitter.com already supports the recommended environment.

This SSL requirement will be enforced on all api.twitter.com URLs, including all steps of OAuth and all REST API resources.

Connecting to the API using the SSL protocol builds a safe communication channel between our servers and your application, meaning that no sensitive data can be accessed or tampered by unauthorized agents in the middle of this communication path.

Any well-established HTTP client library already supports the ability to connect to a SSL-enabled server and usually the required change is just a matter of updating a few lines of code or configuration files. For specific details about using SSL to connect at api.twitter.com, please review Connecting to Twitter API using SSL.

A "blackout test" will be performed on Jan 7th, 2014, when HTTP plaintext connections will be unavailable for a time period to be defined and announced in this discussion page and via the @twitterapi account.

If you have any questions or concerns with securely connecting to api.twitter.com over SSL, please post them here.

26 weeks 1 day ago

Replies

FundacaoCEFA
@FundacaoCEFA Twitting @ Fundação

java users:

...
ConfigurationBuilder cb = new ConfigurationBuilder();
cb.setUseSSL(true);
//when using proxy
cb.setHttpProxyHost("proxy_ip");
cb.setHttpProxyPort(proxy_port);
...

that's all i had to change to make things work!

21 weeks 4 days ago
KimmoVaint
@KimmoVaint Kimmo vaintola

Im Update This My New Account Twitter Page @KimmoVaint Lol All There

21 weeks 3 days ago
venusuv
@venusuv aditi........

I am using wp - to twitter plugin it has suddenly stopped working showing me

403 Forbidden: The request is understood, but has been refused by Twitter. Possible reasons: too many Tweets, same Tweet submitted twice, Tweet longer than 140 characters. Not an error from WP
to Twitter. Is it due to the same api update made by twitter.
Will Switching to https over here make it work??

21 weeks 3 days ago
AllanJShah
@AllanJShah Allan Shah

NOTHING is working!!

I tried the PEM file from http://curl.haxx.se/ca/cacert.pem
Also tried EVERY SINGLE certt from https://www.symantec.com/page.jsp?id=roots

Still NOTHING!!

I don't even get a http_code returned, it is always NULL.
Therefore I do not even know what's wrong!!

Did anyone get this working trying to connect to OAUTH using PHP??

21 weeks 3 days ago
VonniMediaMogul
@VonniMediaMogul Javonni Brustow

Thanks for the headache! going to have some Tylenol now smh

21 weeks 2 days ago
sidhartha11
@sidhartha11 sidhartha11

I ran into the SSL problem using twitter4j suddently ... It appears that ConfigurationBuilder pickes up a default value for SSL as false . I set the system property con the command line to TRUE. This fixed the issue:
In Eclispe, just ste the following VM argument:
-Dtwitter4j.http.useSSL=true

21 weeks 2 days ago
aiad6533333
@aiad6533333 لبيع الفقع0564678412

es

21 weeks 2 days ago
TryBuySoftware
@TryBuySoftware QuickCoin

The MIT app inventor Twitter component also seems to have been killed by the https change. Any ideas please.

21 weeks 2 days ago
shinyLGi
@shinyLGi Lamusique Gertho

I need to log in as if my phone was a PC. May I get some help for that?

21 weeks 2 days ago
LaLetraCom
@LaLetraCom Letra de Canciones

Estaba usando twitter.class.php de David Grudl sin problemas y ahora con estos cambios no entiendo que es lo que debo modificar ¿Alguien usa esta misma libreria?

21 weeks 1 day ago
AdeelNawaf
@AdeelNawaf عادل الصابري

hi

21 weeks 1 day ago
binafnbi
@binafnbi بندر ابراهيم العفنان

thank

21 weeks 1 day ago
MovistarPubli
@MovistarPubli Movistar Publicis

I have a problem since last chage in twitter api. I made the changes in my code as is said in 'Connecting to Twitter API using SSL' doc but the response is always "Failed to validate oauth signature and token", this are the parameters I send when i ask for the token: https://api.twitter.com/oauth/request_token
[request] =>
[oauth] => Array (
[oauth_consumer_key] => EDA7C3qIAgQLbVs6f5g4A
[oauth_token] =>
[oauth_nonce] => 82ba441695b0a2c3ad4c73e7a50ec104
[oauth_timestamp] => 1390229868
[oauth_signature_method] => HMAC-SHA1
[oauth_version] => 1.0
[oauth_callback] =>
[oauth_signature] => Y4YsYqthMqJjAXmqIaUBsHyR4Iw%3D )
[oauth_verifier] =>
[oauth_callback] =>
[oauth_token] => D6rKoj5NWXPHG4g0ySnEoN1VtBzStN1Z6PdWfsDTZtQ )

I use 'cacert.pem' from codebird lib because i didn't found any other file to use.

Some idea about what is happening?

21 weeks 1 day ago
xymalf
@xymalf adrian bonnington

My twitter PHP apps have stopped working. Is this due to SSL or Oauth being changed?

21 weeks 1 day ago
ankitawishtree
@ankitawishtree ankita kesharwani

i am using this search api : http://api.twitter.com/1.1/search/tweets.json?q=harry&with_twitter_user_id=true&include_entities=1&include_rts=1

can anybody suggest me how to go for https?

21 weeks 11 hours ago
rukawajw
@rukawajw jovi11

I have installI right certificate,but it does not work.I use proxy server to request https.I get a problem like “unable to find valid certification path to requested target”.Is it because of proxy?
Second Problem is the application is android app,and how to use twitter4j to request https with ssl.Anyone know?

21 weeks 6 hours ago
abr770071
@abr770071 نسيم الهواء

770071289

21 weeks 3 hours ago
abr770071
@abr770071 نسيم الهواء

770071289

21 weeks 3 hours ago
njtuser
@njtuser Ibbu Ahmed

I had the same issue it worked locally but not on our app servers. I was getting below error

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certif
Relevant discussions can be found on the Internet at:

It worked for me after I have added below certificate to my keystore:

http://www.verisign.com/repository/roots/root-certificates/PCA-3G5.pem

Basically below is the command to be run under your JAVA_HOME/jre/lib/security and this will update your cacerts

http://gagravarr.org/writing/openssl-certs/others.shtml

keytool -import -alias verisignclass3g5 -file /home/verisignclass3g5.crt -keystore cacerts

21 weeks 2 hours ago
Foreverr_Bee
@Foreverr_Bee Breanna lynn ♥

wtf

21 weeks 1 hour ago
JoDa21269690
@JoDa21269690 Jo Da

Ooophs, we got an error: Authentification failed! Twitter returned an error. 401 Unauthorized. Is the reason the new Api Update from Twitter? I take the newest Version of HybridAuth
Here is the Code:

  1. <?php
  2. /!
  3.  HybridAuth
  4. * http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
  5. * (c) 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html 
  6. */
  7.  
  8. /
  9.  * Hybrid_Providers_Twitter provider adapter based on OAuth1 protocol
  10.  */
  11. class Hybrid_Providers_Twitter extends Hybrid_Provider_Model_OAuth1
  12. {
  13.     /
  14.      * IDp wrappers initializer
  15.      */
  16.     function initialize()
  17.     {
  18.         parent::initialize();
  19.  
  20.         // Provider api end-points
  21.         $this->api->api_base_url      = "https://api.twitter.com/1.1/";
  22.         $this->api->authorize_url     = "https://api.twitter.com/oauth/authenticate";
  23.         $this->api->request_token_url = "https://api.twitter.com/oauth/request_token";
  24.         $this->api->access_token_url  = "https://api.twitter.com/oauth/access_token";
  25.  
  26.         if ( isset( $this->config['api_version'] ) && $this->config['api_version'] ){
  27.             $this->api->api_base_url  = "https://api.twitter.com/{$this->config['api_version']}/";
  28.         }
  29.  
  30.         if ( isset( $this->config['authorize'] ) && $this->config['authorize'] ){
  31.             $this->api->authorize_url = "https://api.twitter.com/oauth/authorize";
  32.         }
  33.  
  34.         $this->api->curl_auth_header  = false;
  35.     }
  36.  
  37.     /
  38.      * begin login step
  39.      */
  40.     function loginBegin()
  41.     {
  42.         $tokens = $this->api->requestToken( $this->endpoint );
  43.  
  44.         // request tokens as recived from provider
  45.         $this->request_tokens_raw = $tokens;
  46.  
  47.         // check the last HTTP status code returned
  48.         if ( $this->api->http_code != 200 ){
  49.             throw new Exception( "Authentification failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 5 );
  50.         }
  51.  
  52.         if ( ! isset( $tokens["oauth_token"] ) ){
  53.             throw new Exception( "Authentification failed! {$this->providerId} returned an invalid oauth token.", 5 );
  54.         }
  55.  
  56.         $this->token( "request_token"       , $tokens["oauth_token"] );
  57.         $this->token( "request_token_secret", $tokens["oauth_token_secret"] );
  58.  
  59.         // redirect the user to the provider authentication url with force_login
  60.         if ( isset( $this->config['force_login'] ) && $this->config['force_login'] ){
  61.             Hybrid_Auth::redirect( $this->api->authorizeUrl( $tokens, array( 'force_login' => true ) ) );
  62.         }
  63.  
  64.         // else, redirect the user to the provider authentication url
  65.         Hybrid_Auth::redirect( $this->api->authorizeUrl( $tokens ) );
  66.     }
  67.  
  68.     /
  69.      * load the user profile from the IDp api client
  70.      */
  71.     function getUserProfile()
  72.     {
  73.         $response = $this->api->get( 'account/verify_credentials.json' );
  74.  
  75.         // check the last HTTP status code returned
  76.         if ( $this->api->http_code != 200 ){
  77.             throw new Exception( "User profile request failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ), 6 );
  78.         }
  79.  
  80.         if ( ! is_object( $response ) || ! isset( $response->id ) ){
  81.             throw new Exception( "User profile request failed! {$this->providerId} api returned an invalid response.", 6 );
  82.         }
  83.  
  84.         # store the user profile.
  85.         $this->user->profile->identifier  = (property_exists($response,'id'))?$response->id:"";
  86.         $this->user->profile->displayName = (property_exists($response,'screen_name'))?$response->screen_name:"";
  87.         $this->user->profile->description = (property_exists($response,'description'))?$response->description:"";
  88.         $this->user->profile->firstName   = (property_exists($response,'name'))?$response->name:"";
  89.         $this->user->profile->photoURL    = (property_exists($response,'profile_image_url'))?$response->profile_image_url:"";
  90.         $this->user->profile->profileURL  = (property_exists($response,'screen_name'))?("http://twitter.com/".$response->screen_name):"";
  91.         $this->user->profile->webSiteURL  = (property_exists($response,'url'))?$response->url:"";
  92.         $this->user->profile->region      = (property_exists($response,'location'))?$response->location:"";
  93.  
  94.         return $this->user->profile;
  95.     }
  96.  
  97.     /
  98.      * load the user contacts
  99.      */
  100.     function getUserContacts()
  101.     {
  102.         $parameters = array( 'cursor' => '-1' );
  103.         $response  = $this->api->get( 'friends/ids.json', $parameters );
  104.  
  105.         // check the last HTTP status code returned
  106.         if ( $this->api->http_code != 200 ){
  107.             throw new Exception( "User contacts request failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ) );
  108.         }
  109.  
  110.         if( ! $response || ! count( $response->ids ) ){
  111.             return ARRAY();
  112.         }
  113.  
  114.         // 75 id per time should be okey
  115.         $contactsids = array_chunk ( $response->ids, 75 );
  116.  
  117.         $contacts    = ARRAY();
  118.  
  119.         foreach( $contactsids as $chunk ){
  120.             $parameters = array( 'user_id' => implode( ",", $chunk ) );
  121.             $response   = $this->api->get( 'users/lookup.json', $parameters );
  122.  
  123.             // check the last HTTP status code returned
  124.             if ( $this->api->http_code != 200 ){
  125.                 throw new Exception( "User contacts request failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ) );
  126.             }
  127.  
  128.             if( $response && count( $response ) ){
  129.                 foreach( $response as $item ){
  130.                     $uc = new Hybrid_User_Contact();
  131.  
  132.                     $uc->identifier   = (property_exists($item,'id'))?$item->id:"";
  133.                     $uc->displayName  = (property_exists($item,'name'))?$item->name:"";
  134.                     $uc->profileURL   = (property_exists($item,'screen_name'))?("http://twitter.com/".$item->screen_name):"";
  135.                     $uc->photoURL     = (property_exists($item,'profile_image_url'))?$item->profile_image_url:"";
  136.                     $uc->description  = (property_exists($item,'description'))?$item->description:"";
  137.  
  138.                     $contacts[] = $uc;
  139.                 }
  140.             }
  141.         }
  142.  
  143.         return $contacts;
  144.     }
  145.  
  146.     /
  147.      * update user status
  148.      */
  149.     function setUserStatus( $status )
  150.     {
  151.         $parameters = array( 'status' => $status );
  152.         $response  = $this->api->post( 'statuses/update.json', $parameters );
  153.  
  154.         // check the last HTTP status code returned
  155.         if ( $this->api->http_code != 200 ){
  156.             throw new Exception( "Update user status failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ) );
  157.         }
  158.     }
  159.  
  160.     /**
  161.      * load the user latest activity
  162.      *    - timeline : all the stream
  163.      *    - me       : the user activity only
  164.      *
  165.      * by default return the timeline
  166.      */
  167.     function getUserActivity( $stream )
  168.     {
  169.         if( $stream == "me" ){
  170.             $response  = $this->api->get( 'statuses/user_timeline.json' );
  171.         }
  172.         else{
  173.             $response  = $this->api->get( 'statuses/home_timeline.json' );
  174.         }
  175.  
  176.         // check the last HTTP status code returned
  177.         if ( $this->api->http_code != 200 ){
  178.             throw new Exception( "User activity stream request failed! {$this->providerId} returned an error. " . $this->errorMessageByStatus( $this->api->http_code ) );
  179.         }
  180.  
  181.         if( ! $response ){
  182.             return ARRAY();
  183.         }
  184.  
  185.         $activities = ARRAY();
  186.  
  187.         foreach( $response as $item ){
  188.             $ua = new Hybrid_User_Activity();
  189.  
  190.             $ua->id                 = (property_exists($item,'id'))?$item->id:"";
  191.             $ua->date               = (property_exists($item,'created_at'))?strtotime($item->created_at):"";
  192.             $ua->text               = (property_exists($item,'text'))?$item->text:"";
  193.  
  194.             $ua->user->identifier   = (property_exists($item->user,'id'))?$item->user->id:"";
  195.             $ua->user->displayName  = (property_exists($item->user,'name'))?$item->user->name:"";
  196.             $ua->user->profileURL   = (property_exists($item->user,'screen_name'))?("http://twitter.com/".$item->user->screen_name):"";
  197.             $ua->user->photoURL     = (property_exists($item->user,'profile_image_url'))?$item->user->profile_image_url:"";
  198.  
  199.             $activities[] = $ua;
  200.         }
  201.  
  202.         return $activities;
  203.     }
  204. }
21 weeks 55 min ago
JoDa21269690
@JoDa21269690 Jo Da

Ooophs, we got an error: Authentification failed! Twitter returned an error. 401 Unauthorized. Is the reason the new api update from Twitter? I take the OpenSource Project HybridAuth

21 weeks 52 min ago
chcibelli
@chcibelli Christian Cibelli

Im still getting 401 error when try to request_token. Im using PHP. Anybody could fix this issue?

Thanks

21 weeks 46 min ago
AishDev1
@AishDev1 AishDev

I am getting error code 400 when used ssl connections. I am using twiiter4j-3.0.3 library. Can somebody give me some suggestions what is wrong here?

20 weeks 6 days ago
zhangchb
@zhangchb jacob

Code Examples for java?

20 weeks 4 days ago
fb_nyc
@fb_nyc Frank Batista

Getting 401 errors when updating user's status.

I've been using Abraham's php twitteroauth and it has been working great until the recent ssl update. So I added my ssl certificates and I've confirmed that my ssl verisign G2 certificate is installed properly.

but now I'm getting the following 401 error back:

  1. TwitterOAuth Object ( 
  2. [http_code] => 401 
  3. [url] => https://api.twitter.com/1.1/statuses/update.json 
  4. [host] => https://api.twitter.com/1.1/ 
  5. [timeout] => 30 
  6. [connecttimeout] => 30 
  7. [ssl_verifypeer] => 1 
  8. [format] => json 
  9. [decode_json] => 1 
  10. [http_info] => Array ( 
  11. [url] => https://api.twitter.com/1.1/statuses/update.json 
  12. [content_type] => application/json;charset=utf-8 
  13. [http_code] => 401 
  14. [header_size] => 709 
  15. [request_size] => 545 
  16. [filetime] => -1 
  17. [ssl_verify_result] => 0 
  18. [redirect_count] => 0 
  19. [total_time] => 0.080973 
  20. [namelookup_time] => 3.1E-5 
  21. [connect_time] => 0.015966 
  22. [pretransfer_time] => 0.053174 
  23. [size_upload] => 357 
  24. [size_download] => 87 
  25. [speed_download] => 1074 
  26. [speed_upload] => 4408 
  27. [download_content_length] => 87 
  28. [upload_content_length] => 357 
  29. [starttransfer_time] => 0.080945 
  30. [redirect_time] => 0 
  31. [certinfo] => Array ( ) 
  32. [redirect_url] => ) 
  33. [useragent] => TwitterOAuth v0.2.0-beta2 
  34. [sha1_method] => OAuthSignatureMethod_HMAC_SHA1 Object ( ) 
  35. [consumer] => OAuthConsumer Object ( 
  36. [key] => 
  37. [secret] => 
  38. [callback_url] => ) 
  39. [token] => OAuthConsumer Object ( 
  40. [key] => 
  41. [secret] =>
  42. [callback_url] => ) 
  43. [http_header] => Array ( 
  44. [cache_control] => no-cache, no-store, must-revalidate, pre-check=0, post-check=0 
  45. [content_length] => 87 
  46. [content_type] => application/json;charset=utf-8 
  47. [date] => Fri, 24 Jan 2014 06:36:57 GMT 
  48. [expires] => Tue, 31 Mar 1981 05:00:00 GMT 
  49. [last_modified] => Fri, 24 Jan 2014 06:36:57 GMT 
  50. [pragma] => no-cache 
  51. [server] => tfe 
  52. [set_cookie] => guest_id=; Domain=.twitter.com; Path=/; Expires=Sun, 24-Jan-2016 06:36:57 UTC 
  53. [status] => 401 Unauthorized 
  54. [strict_transport_security] => max-age=631138519 
  55. [x_access_level] => read 
  56. [x_frame_options] => SAMEORIGIN 
  57. [x_rate_limit_limit] => 15 
  58. [x_rate_limit_remaining] => 13 
  59. [x_rate_limit_reset] => 13905462
  60. [x_transaction] => fbc94029b62664f
  61. [x_xss_protection] => 1; mode=block 
  62. [www_authenticate] => OAuth realm="https://api.twitter.com" ) )

Is it the expires date going back to March 1981? Any help would be really appreciated.

20 weeks 4 days ago
Jiro_De_Pogi
@Jiro_De_Pogi mark geronne macasan

Hi, I'am using scribe to connect to twitter. since twitter api has change, I cant connect to twitter now. the error is request body incorrect, can't extract token from an empty strings.

please help

20 weeks 14 hours ago
Cackleru
@Cackleru Cackle.ru

Hello,

For my web application I'm using Spring-Social-Twitter library (http://projects.spring.io/spring-social-twitter/) woten on Java. This library seems already support SSL because all url start with https

https://api.twitter.com/oauth/request_token
https://api.twitter.com/oauth/authorize
https://api.twitter.com/oauth/authenticate
https://api.twitter.com/oauth/access_token

But when I try to logged in got the message:

I/O error on POST request for "https://api.twitter.com/oauth/request_token":sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

How can I resolve this problem?

17 weeks 1 hour ago
Millaisnice
@Millaisnice Milla

I'm using a PHP class of abraham/twitterOAuth and I noticed that Twitter api.twitter.com now requires SSL/TLS.

I don't know what should I do to fix SSL for Twitter.

15 weeks 6 days ago
airtonvancin
@airtonvancin Airton Vancin Junior

I also find it let me know?

Thank you.
:)

15 weeks 5 days ago
airtonvancin
@airtonvancin Airton Vancin Junior

I am using OAuth to connect and pull the latest tweets on my website is working perfectly.

I have doubts as to traffic restriction api.twitter.com SSL / TLS

I have to switch to SSL / TLS?
How to do this?
will stop working if you leave like this?

15 weeks 5 days ago
Millaisnice
@Millaisnice Milla

Hi, you need not change .

15 weeks 5 days ago
airtonvancin
@airtonvancin Airton Vancin Junior

Hello, what the situation must apply the SSL you know?

Thank you.

15 weeks 5 days ago
Millaisnice
@Millaisnice Milla

I'm using a PHP class of abraham/twitterOAuth and I noticed that Twitter api.twitter.com now requires SSL/TLS.

It is very inconceivable. One of my API works fine. I have not opdate anything yet.My two API are used with different severs .Now I am wondering it is sever problem or twitter SSL issue .

Run curl --verbose "https://api.twitter.com/1/help/test.json"

[root@pppppp]# curl -3 -capath --ssl https://api.twitter.com
-bash: file: No such file or directory
[root@ppppppp ~]# curl --verbose "https://api.twitter.com/1/help/test.json"
* About to connect() to api.twitter.com port 443 (#0)
* Trying 199.16.156.104... connected
* Connected to api.twitter.com (199.16.156.104) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -5990
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error

[root@ppppppp ~]# traceroute api.twitter.com
traceroute to api.twitter.com (199.16.156.104), 30 hops max, 60 byte packets
1 erver.ch1.hos.net (197.872.2.98) 0.029 ms 0.017 ms 0.015 ms
2 0-63.gw1.chi.hos.net (65.85.46.885) 0.394 ms 0.375 ms 0.448 ms
3 eqix-ch2.twitter.com (206.223.119.171) 0.462 ms 0.447 ms 0.410 ms
4 199.16.159.34 (199.16.159.34) 28.539 ms 28.494 ms 28.581 ms
5 ae50.atl1-er1.twttr.com (199.16.159.73) 47.281 ms 44.621 ms 44.565 ms
6 199.16.156.104 (199.16.156.104) 43.593 ms 46.474 ms 46.426 ms

Can anyone tell me what problem my API have? How should I fix it?

15 weeks 5 days ago
user_removed
@user_removed Stefan Nehlsen

The perl module Net::Twitter is broken. It doesn't work anymore from behind a http-proxy.

Instead of using the CONNECT method to initialize a proper connection it throws a POST command directly against the proxy.

The answer is 503 -- and it is right!

I will have to move this function to an other host with direct access.

15 weeks 2 hours ago
alharbisu
@alharbisu سلطان عتيق الحربي

شكرا

12 weeks 5 days ago
ajraju7
@ajraju7 Syed Raziul Hassan

When  are run with devices.....

12 weeks 3 days ago
Emergency_R
@Emergency_R edwin

BW-TW-100403 Job-25000 Error in [Process Definition.process/TwitterPublish Activity]
403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following).
message - SSL is required
code - 92

I'm using tibco bw with twitter plugin. Anyone know how to deal with this issue?

12 weeks 3 days ago
wondDe
@wondDe wonDe

are you using twitter4j lib?

12 weeks 15 hours ago
wondDe
@wondDe wonDe

are you using twitter4j lib?

12 weeks 15 hours ago
wondDe
@wondDe wonDe

I updated to twitter4j 4.0.1 now, running on JVM 6 machine. I get this error:
"Failed to get timeline: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"

Please help!!!! THANK YOU!

12 weeks 1 day ago
eland_kwtseng
@eland_kwtseng kwtseng

I got that error too!

10 weeks 1 day ago
eland_kwtseng
@eland_kwtseng kwtseng

Did you solve it?

10 weeks 1 day ago
Emergency_R
@Emergency_R edwin

yes. i have change the library files from twitter4j 3.1.0 to twitter4j.4.0.1

12 weeks 12 hours ago
eland_kwtseng
@eland_kwtseng kwtseng

I use java to connect twitter api. I test my code on local test machine can work, however put it on server to execute find errors like following:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2014/04/02 14:56:05 [ERROR] twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:179)
2014/04/02 14:56:05 [ERROR] twitter4j.HttpClientBase.request(HttpClientBase.java:53)
2014/04/02 14:56:05 [ERROR] twitter4j.HttpClientBase.get(HttpClientBase.java:71)
2014/04/02 14:56:05 [ERROR] twitter4j.TwitterImpl.get(TwitterImpl.java:1950)
2014/04/02 14:56:05 [ERROR] twitter4j.TwitterImpl.getRateLimitStatus(TwitterImpl.java:1862)

Can any one tell me, what can I do for this exception. Thank you.

10 weeks 1 day ago
terranec
@terranec terranec

two ways: upgrade to twitter4j 3.0.5, or, add following line to your twitter4j.properties: http.useSSL=true

9 weeks 5 days ago
xymalf
@xymalf adrian bonnington

Do you now need a SSL webpage to write twitter apps? I used to have an app that displayed latest 20 twitter friends . Is this still posible to do?

5 weeks 2 days ago
IAmEhtisham
@IAmEhtisham Ehtisham Abbasi

thanks to help me

5 weeks 11 hours ago
Narasim04250842
@Narasim04250842 Narasimha

Login error on Subdomain

4 weeks 6 days ago