Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL issue since upgrade to flickraw 0.9 #30

Closed
gatogatogato opened this issue Oct 8, 2011 · 4 comments
Closed

OpenSSL issue since upgrade to flickraw 0.9 #30

gatogatogato opened this issue Oct 8, 2011 · 4 comments

Comments

@gatogatogato
Copy link

SInce my upgrade to flickraw 0.9 I get this error for authenticated requests:

/Library/Ruby/Gems/1.8/gems/flickraw-0.9/lib/flickraw.rb:79:in 'gen_nonce': uninitialized constant FlickRaw::OAuth::OpenSSL (NameError)
from /Library/Ruby/Gems/1.8/gems/flickraw-0.9/lib/flickraw.rb:82:in 'gen_default_params'
from /Library/Ruby/Gems/1.8/gems/flickraw-0.9/lib/flickraw.rb:104:in 'post_form'
from /Library/Ruby/Gems/1.8/gems/flickraw-0.9/lib/flickraw.rb:286:in 'call'
from /Library/Ruby/Gems/1.8/gems/flickraw-0.9/lib/flickraw.rb:278:in 'initialize'
from /Library/Ruby/Gems/1.8/gems/flickraw-0.9/lib/flickraw.rb:426:in 'new'
from /Library/Ruby/Gems/1.8/gems/flickraw-0.9/lib/flickraw.rb:426:in 'flickr'
from /Users/gato/Desktop/testflickr.rb:11

I'm on Mac OS X Lion. Before the upgrade everything worked perfect.
What am I doing wrong?

Regards,
gato

@hanklords
Copy link
Owner

Hello,

I suspect a missing require in the library : try to require 'openssl' before requiring flickraw.

@gatogatogato
Copy link
Author

Hi,

this actually resolved the issue.
Should openssl not be required in flickraw.rb?

@hanklords
Copy link
Owner

It is strange, on my system openssl is loaded by net/http. Anyway I will add the require and update the gem.

Thank you for the bug report !

@gatogatogato
Copy link
Author

Thanks for the fast response! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants