futuresimple/dropbox-api — Issue #4: App folder (sandbox) access attempt failed
Author: amotion
Created: 2012-02-12 22:30:01+00:00
State: open

For some reason I can't get the the `client.ls` command to use the mode I've set with `Dropbox::API::Config.mode`, it keeps returning the following error message:

1.9.2p290 :017 > client.ls
Dropbox::API::Error: App folder (sandbox) access attempt failed because this app is not configured to have an app folder. Should your access type be 'dropbox' instead?
from /Users/amotion/.rvm/gems/ruby-1.9.2-p290/gems/dropbox-api-0.2.0/lib/dropbox-api/connection/requests.rb:22:in `request'
from /Users/amotion/.rvm/gems/ruby-1.9.2-p290/gems/dropbox-api-0.2.0/lib/dropbox-api/connection/requests.rb:41:in `get'
from /Users/amotion/.rvm/gems/ruby-1.9.2-p290/gems/dropbox-api-0.2.0/lib/dropbox-api/client/raw.rb:26:in `request'
from (eval):3:in `metadata'
from /Users/amotion/.rvm/gems/ruby-1.9.2-p290/gems/dropbox-api-0.2.0/lib/dropbox-api/objects/dir.rb:9:in `ls'
from /Users/amotion/.rvm/gems/ruby-1.9.2-p290/gems/dropbox-api-0.2.0/lib/dropbox-api/client.rb:25:in `ls'
from (irb):17
from /Users/amotion/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.0/lib/rails/commands/console.rb:47:in `start'
from /Users/amotion/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.0/lib/rails/commands/console.rb:8:in `start'
from /Users/amotion/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.0/lib/rails/commands.rb:41:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'

But when I check in the console it seems the mode is set correctly:

1.9.2p290 :016 > Dropbox::API::Config.mode
=> "dropbox"

See anything obvious I might be missing?