-
Notifications
You must be signed in to change notification settings - Fork 46
401 Unauthorized #45
Comments
i figured out using this tonywok@10fc9d1 |
Looks like this gem is completely broken right now... I had to switch to gem 'dropbox', :git => 'git://github.com/tonywok/dropbox.git', :branch => 'v1' for the time being (I'm in early stage development, so this is fine right now) |
I tried using the dropbox gem in IRB and got the same error: ruby-1.8.7-p249 > require 'dropbox' Any ideas what is up? I'm trying to connect to my own app, which is in Development status (app is on same account I'm saving to though, so that should be cool, right?) |
OAuth response.body is: {"error": "You're using an older version of the Dropbox API with a new API key. Please use the latest version."} |
This is because of an update to the Dropbox API in v1.0. Personally I switched to the official Dropbox API. |
All new applications will be broken with this gem until the gem is fixed. |
@Allix: you mean all the new applications set up via Dropbox site ? Which gem you use now ? oauth (0.4.5) lib/oauth/consumer.rb:219:in When switching to Dropbox credentials set up some time ago, it works. Like old and new Dropbox app behave different. |
Yes. New applications are required to do things the new way. I switched to the official gem. Sent from my iPhone On Jan 20, 2012, at 12:53 AM, [email protected] wrote:
|
I see. Have you tried that gem https://github.com/futuresimple/dropbox-api, also mentioned here https://www.dropbox.com/developers/reference/sdk, looks promising |
Perfectly fine with the official one. See no need to switch. Sent from my iPhone On Jan 23, 2012, at 1:05 AM, [email protected] wrote:
|
Hi!
I have a very basic issue using this gem and I haven't figure out yet what is actually wrong. Maybe someone had the same problem?
So, configuration is:
rails (2.3.11)
ruby-1.9.2-p290
oauth (0.4.5)
dropbox (1.3.0)
(...)
controller action fails at this line (yes, very first, APP_KEY and APP_SECRET are the values obtained at dropbox pages):
dropbox_session = Dropbox::Session.new(APP_KEY, APP_SECRET)
it results with:
401 Unauthorized
and application trace...
.../gems/oauth-0.4.5/lib/oauth/consumer.rb:219:in 'token_request'
.../gems/oauth-0.4.5/lib/oauth/consumer.rb:139:in 'get_request_token'
.../gems/dropbox-1.3.0/lib/dropbox/session.rb:70:in 'initialize'
.../app/controllers/files_controller.rb:94:in 'new'
.../app/controllers/files_controller.rb:94:in 'authorize'
when am trying to initialize session using dropbox_sdk.rb file things are working (but I prefer using gems)
what am I doing wrong? can someone give me a hint because I am running out of ideas!
Thanks a lot! ;)
The text was updated successfully, but these errors were encountered: