Message - Bad Authentication data


#1

400:The request was invalid
message - Bad Authentication data
code - 215

I have the right consumer key and secret
i’ve tried re-connecting after hours but it’s not still working, please bail me out.

       builder.setOAuthConsumerKey(consumerKey);
        builder.setOAuthConsumerSecret(consumerSecret);
            
        if( (accessToken != null) && (accessKey != null) )  {
            builder.setOAuthAccessToken(accessToken);
            builder.setOAuthAccessTokenSecret(accessKey);
        }
            builder.setOAuthAccessTokenURL("https://api.twitter.com/oauth/access_token");
            builder.setOAuthRequestTokenURL("https://api.twitter.com/oauth/request_token");
            builder.setOAuthAuthorizationURL("https://api.twitter.com/oauth/authorize");
           
            factory = new TwitterFactory( builder.build() );
            twitter = factory.getInstance();

then i go ahead and make a request token to obtain access token for clients


#2

There are lots of reasons auth can fail – take a look at [node:204] for some debugging tips.