nerdsfornature / changebrackets

This is a public repo for our project that uses angle brackets to monitor environmental change
MIT License
5 stars 4 forks source link

Flickr integration might not be working #4

Closed chellman closed 10 years ago

chellman commented 10 years ago

This is a pretty cool project! Thanks for all of this code. I'm having some trouble with the Flickr integration. It seems like it really wants to authenticate with OAuth, which should be needed for searching public photos (if I understand everything correctly). In any case, the error below is what I'm seeing. We're interested in Instagram and Flickr for now, and Instagram seems to be working great.

Here's the command and backtrace.

% bundle exec ruby fireslurp.rb -c config.yaml exampletag

/home/deploy/.rvm/gems/ruby-1.9.3-p547/gems/flickraw-0.9.7/lib/flickraw/oauth.rb:156:in post': FlickRaw::OAuthClient::FailedResponse (FlickRaw::OAuthClient::FailedResponse) from /home/deploy/.rvm/gems/ruby-1.9.3-p547/gems/flickraw-0.9.7/lib/flickraw/oauth.rb:92:inpost_form' from /home/deploy/.rvm/gems/ruby-1.9.3-p547/gems/flickraw-0.9.7/lib/flickraw/api.rb:58:in call' from /home/deploy/.rvm/gems/ruby-1.9.3-p547/gems/flickraw-0.9.7/lib/flickraw/api.rb:48:ininitialize' from /home/deploy/.rvm/gems/ruby-1.9.3-p547/gems/flickraw-0.9.7/lib/flickraw.rb:18:in new' from /home/deploy/.rvm/gems/ruby-1.9.3-p547/gems/flickraw-0.9.7/lib/flickraw.rb:18:inflickr' from fireslurp.rb:175:in client' from fireslurp.rb:141:insearch' from fireslurp.rb:137:in method_missing' from fireslurp.rb:247:inblock (2 levels) in write_to_google' from fireslurp.rb:246:in each' from fireslurp.rb:246:inblock in write_to_google' from fireslurp.rb:243:in each' from fireslurp.rb:243:inwrite_to_google' from fireslurp.rb:287:in `

'

kueda commented 10 years ago

It shouldn't need to have a user login for Flickr, but you do need to have a working Flickr API key and secret in your YAML file, or specified on the command line with --flickr-key=xxx --flickr-secret=yyy. Are you doing that and still seeing this error?

chellman commented 10 years ago

Yes, the key and secret are in the YAML file. I just tried it from the command line as well, and I get the same error.

kueda commented 10 years ago

Well, it's working for me. I would double check your key and secret, and maybe try to use them in a different context to make sure that's not where the problem is. I also noticed that my copy seems to have a slightly newer version of Flickraw, which might be the culprit. Maybe try it again with https://github.com/kueda/changebrackets

chellman commented 10 years ago

Your fork worked for me, so maybe that updated flickraw really matters. Thanks very much!