karthik / rDrop

Programmatic interface to Dropbox
65 stars 17 forks source link

Issue with dropbox_get() #6

Open BERENZ opened 11 years ago

BERENZ commented 11 years ago

Hi there,

I have problem with dropbox_get function. I have connected to my dropbox and there is no problem using function dropbox_save, but when I want to download csv file, I get an error.

Could you help me with that? I would be very grateful!

library(rDrop)
drop_token<-dropbox_auth('key','secret_key',ssl.verifypeer=FALSE)

Use the Web browser to grant permission to this code
to access Dropbox on your behalf.
When you see 'Success!', hit enter in R
Dropbox authentication completed successfully.

exists.in.dropbox(drop_token,'kgh.csv',ssl.verifypeer=FALSE)
[1] TRUE

df2<-dropbox_get(drop_token,'kgh.csv',ssl.verifypeer=FALSE)

Error in function (type, msg, asError = TRUE)  : 
  SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

db.read.csv do not work either...and I get this error:

Error in fromJSON(OAuthRequest(cred, "https://api.dropbox.com/1/search/dropbox/",  : 
  error in evaluating the argument 'content' in selecting a method for function 'fromJSON': Error in function (type, msg, asError = TRUE)  : 
  SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

I work on Windows 7 64 bit and here is my session.info.

R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=Polish_Poland.1250  LC_CTYPE=Polish_Poland.1250    LC_MONETARY=Polish_Poland.1250 LC_NUMERIC=C                   LC_TIME=Polish_Poland.1250    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] rDrop_0.3        stringr_0.6.2    colorspace_1.2-1 Rcpp_0.10.2      plyr_1.8         ROAuth_0.92.0    digest_0.6.2     RCurl_1.95-3     bitops_1.0-5     RJSONIO_1.0-1   

loaded via a namespace (and not attached):
[1] tools_2.15.2

edit: dropbox_media do not work either.

karthik commented 11 years ago

Hi Maceij, Thanks for posting this issue. I won't have a chance to get on it till early next week but will ping you then.

On Sunday, February 3, 2013 at 12:10 PM, Maciej Beręsewicz wrote:

Hi there, I have problem with dropbox_get function. I have connected to my dropbox and there is no problem using function dropbox_save, but when I want to download csv file, I get an error. Could you help me with that? I would be very grateful! library(rDrop) drop_token<-dropbox_auth('key','secret_key',ssl.verifypeer=FALSE) Use the Web browser to grant permission to this code to access Dropbox on your behalf. When you see 'Success!', hit enter in R Dropbox authentication completed successfully. exists.in.dropbox(drop_token,'kgh.csv',ssl.verifypeer=FALSE) [1] TRUE df2<-dropbox_get(drop_token,'kgh.csv',ssl.verifypeer=FALSE) Error in function (type, msg, asError = TRUE) : SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

db.read.csv do not work either...and I get this error: Error in fromJSON(OAuthRequest(cred, "https://api.dropbox.com/1/search/dropbox/", : error in evaluating the argument 'content' in selecting a method for function 'fromJSON': Error in function (type, msg, asError = TRUE) : SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

I work on Windows 7 64 bit and here is my session.info (http://session.info). R version 2.15.2 (2012-10-26) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=Polish_Poland.1250 LC_CTYPE=Polish_Poland.1250 LC_MONETARY=Polish_Poland.1250 LC_NUMERIC=C LC_TIME=Polish_Poland.1250 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] rDrop_0.3 stringr_0.6.2 colorspace_1.2-1 Rcpp_0.10.2 plyr_1.8 ROAuth_0.92.0 digest_0.6.2 RCurl_1.95-3 bitops_1.0-5 RJSONIO_1.0-1 loaded via a namespace (and not attached): [1] tools_2.15.2

— Reply to this email directly or view it on GitHub (https://github.com/karthikram/rDrop/issues/6).

BERENZ commented 11 years ago

Hi Karthik, I would be very grateful if this issue can be resolved, it will be very helpful for my work. :)

BERENZ commented 11 years ago

Hi Karthik, I would like to kindly ask you if you have time to look into my problem with dropbox_get function?

karthik commented 11 years ago

Thanks for the reminder Maciej. I'll be back on this ASAP.  Will get back to you before Wednesday.

On Mon, Feb 18, 2013 at 4:46 AM, Maciej Beręsewicz notifications@github.com wrote:

Hi Karthik,

I would like to kindly ask you if you have time to look into my problem with dropbox_get function?

Reply to this email directly or view it on GitHub: https://github.com/karthikram/rDrop/issues/6#issuecomment-13720316

BERENZ commented 11 years ago

Thank you very much :)