coldfumonkeh / monkehTweets

A ColdFusion wrapper to interact with the Twitter API (with OAuth integration)
http://www.mattgifford.co.uk/
53 stars 30 forks source link

"Could not authenticate you" #20

Closed navin09 closed 9 years ago

navin09 commented 9 years ago

Am new to OAuth and was just trying this out, but I keep getting a "Code: 32" "Could not authenticate you" message. Here's what I did: Inited the object in Application.cfc as per the documentation with my consumerKey, consumerSecret, oauthToken, oauthTokenSecret and userAccountName, and tried to run:

<cfdump var="#application.objMonkeyTweet.trendByLocation("2459115")#"><cfabort>

coldfumonkeh commented 9 years ago

Hi @navin09

Thanks for the issue post. This isn't an issue with the monkehTweets library but something else entirely. It could be either:

a) an issue with the Twitter SSL certificates and / or your JDK version / CF Version

or

b) an issue with the credentials you are using to access the Twitter API through OAuth.

Which version of CF are you running this on? Have the problems only just started (have you been running monkehTweets for a while successfully and this just appeared) or is this a new instance on a new install?

If running CF 9.0.1 or lower it's best to upgrade to 9.0.2 if possible. It's also wise to update to JDK 1.7 >, which can help you with the certificate issue.

If these are already up to date you may need to generate new OAuth tokens with Twitter.

coldfumonkeh commented 9 years ago

Fresh tests were also just run against the library with four successes:

https://travis-ci.org/coldfumonkeh/monkehTweets

coldfumonkeh commented 9 years ago

This is also a good reference as it may help you resolve the issue if it's certificate related:

https://travis-ci.org/coldfumonkeh/monkehTweets

navin09 commented 9 years ago

Hi @coldfumonkeh

First of all, thank you for responding to the post. This is my first time using MonkehTweets. My set up is Coldfusion 10 (developer edition) / Java 1.7.0_15 / Apache 2.2 running on Windows 7.

Judging by your posts, I get the feeling this might not be an issue with the library, but rather "operator error" :). I didn't know where else to post for help though, so I did here. When you say "certificate issue" what exactly does that entail? Please keep in mind that I'm new to OAuth. Where can I find more information on this?