karthik / rDrop

Programmatic interface to Dropbox
65 stars 17 forks source link

HTTP/1.1 400 Bad Request #16

Closed gijsschumacher closed 9 years ago

gijsschumacher commented 9 years ago

Dear rDrop developers, after some effort I managed to make rDrop work using paleo13's suggestion in this thread: https://github.com/karthik/rDrop/issues/4. Dropbox_save works using the 'curl=h' addition at the end. But when I try

package <- unserialize(dropbox_get(dropbox_credentials, file='parlvote.rda', curl=h))
share <- dropbox_share(dropbox_credentials, 'parlvote.rda', curl=h) 

I get this error

Error: Bad Request < HTTP/1.1 400 Bad Request < Server: nginx

What can I do to fix this?

Thanks!

gijsschumacher commented 9 years ago

Update. I managed to circumvent this error by using another way to get dropbox_auth to work (also in the thread I mentioned). But now I run into another problem, if I do

a <- 1:4
b <- 5:8
c <- data.frame(a,b)
dropbox_save(dropbox_credentials, c, file='c')
package <- unserialize(dropbox_get(dropbox_credentials, file='c.csv'))
share <- dropbox_share(dropbox_credentials, 'c.csv')

Package and share both return this error:

Error in data.frame(rev = "260eb05338c6f", thumb_exists = FALSE, path = "/c.rda", : arguments imply differing number of rows: 1, 0

I have tried several different files and file types.

karthik commented 9 years ago

I have deprecated this package in favor of a new replacement: See https://github.com/karthik/rDrop2 and file any issues there. Thanks