qcri-social / AIDR

Artificial Intelligence for Digital Response
http://aidr.qcri.org/
GNU Affero General Public License v3.0
98 stars 37 forks source link

Login Errors #8

Closed ajgbangug closed 10 years ago

ajgbangug commented 10 years ago

Hi, whenever I access AIDRFetchManager and the system tries to log in to Twitter, it just redirects the AIDRFetchManager again and I'm not forwarded to the dashboard. Upon checking the logs, here's what I have:

[2014-08-06T07:31:36.068+0000] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=18 _ThreadName=Thread-3] [timeMillis: 1407310296068] [levelValue: 800] [[
  WARN  org.springframework.web.client.RestTemplate.handleResponseError() : POST request for "https://api.twitter.com/oauth/request_token" resulted in 406 (Not Acceptable); invoking error handler]]

Any hints on where I can start to debug the problem? Is this a Twitter API issue? Thanks!

koushiksinha commented 10 years ago

Hi AJ, yes this is a Twitter API issue. Please check the twitter consumer key, consumer secret, callBackURL and the secureUrl string sin aidr-manager/src/main/resources/system.properties.

ajgbangug commented 10 years ago

Hi @koushiksinha, I checked and the values for the callBackURL and secureURL are both pointing to http://our-domain:8084/AIDRFetchManager. Should it have an extra index.jsp path at the end of it?

With regards to the consumer key and the consumer secret, could you provide us the Twitter API that you are calling so that maybe we can maybe create some code to check if the credentials are valid? Thanks!