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

drop_share() fails if link already created #181

Open
scottyaz opened this issue Apr 19, 2020 · 0 comments
Open

drop_share() fails if link already created #181

scottyaz opened this issue Apr 19, 2020 · 0 comments

Comments

@scottyaz
Copy link

If you call drop_share on a file that already has a link you get "Conflict (HTTP 409)". Would be nice to have this return the url instead.

    system("touch ~/Dropbox/test.csv")
    drop_create("test.csv")
    drop_share(path = "test.csv", 
               requested_visibility = "public",
               link_password = NULL, 
               expires = NULL)

## and again (on accident)
    drop_share(path = "test.csv", 
               requested_visibility = "public",
               link_password = NULL, 
               expires = NULL)

Expected Behaviour

should just return bits from drop_list_shared_links()

Actual Behaviour

Error in drop_share(path = "test.csv", requested_visibility = "public",  : 
  Conflict (HTTP 409).

What happened instead?

Account Type

Are you using Dropbox Basic, Dropbox Pro, or Dropbox for Business?
Pro

Session Info

Replace the output below (inside the backticks) with output from devtools::session_info() (or sessionInfo() if you don't have devtools installed)

R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
 [1] rdrop2_0.8.1             svMisc_1.1.0             knitr_1.27               RColorBrewer_1.1-2      
 [5] lubridate_1.7.4          googlesheets4_0.2.0.9000 leaflet_2.0.2            sp_1.3-2                
 [9] sf_0.7-6                 ggiraph_0.7.0            stringr_1.4.0            markdown_1.1            
[13] DT_0.7                   shiny_1.4.0              naniar_0.5.0             readr_1.3.1             
[17] ggplot2_3.3.0            tidyr_1.0.2              dplyr_0.8.5              shinydashboard_0.7.1    
[21] redcapAPI_2.3            REDCapR_0.10.2          

loaded via a namespace (and not attached):
  [1] assertive.base_0.0-7       googledrive_1.0.0          colorspace_1.4-1           ellipsis_0.3.0            
  [5] class_7.3-15               rsconnect_0.8.16           visdat_0.5.3               rgdal_1.4-4               
  [9] rprojroot_1.3-2            fs_1.3.1                   httpcode_0.2.0             rstudioapi_0.11           
 [13] farver_2.0.3               assertive.sets_0.0-3       remotes_2.1.0              fansi_0.4.1               
 [17] xml2_1.2.2                 assertive.data.uk_0.0-2    codetools_0.2-16           pkgload_1.0.2             
 [21] assertive_0.3-5            jsonlite_1.6.1             assertive.data.us_0.0-2    packrat_0.5.0             
 [25] rgeos_0.4-3                compiler_3.6.1             httr_1.4.1                 backports_1.1.5           
 [29] assertthat_0.2.1           fastmap_1.0.1              lazyeval_0.2.2             gargle_0.4.0              
 [33] cli_2.0.2                  later_1.0.0                htmltools_0.4.0            prettyunits_1.1.1         
 [37] tools_3.6.1                gtable_0.3.0               glue_1.4.0                 geojson_0.3.2             
 [41] V8_3.0.2                   Rcpp_1.0.4                 cellranger_1.1.0           vctrs_0.2.4               
 [45] crul_0.9.0                 assertive.models_0.0-2     assertive.files_0.0-2      assertive.datetimes_0.0-2 
 [49] crosstalk_1.0.0            xfun_0.12                  ps_1.3.2                   testthat_2.3.2            
 [53] mime_0.9                   lifecycle_0.2.0            devtools_2.1.0             jqr_1.1.0                 
 [57] scales_1.1.0               hms_0.5.0                  promises_1.1.0             assertive.matrices_0.0-2  
 [61] assertive.strings_0.0-3    yaml_2.2.0                 curl_4.3                   memoise_1.1.0             
 [65] gdtools_0.2.1              stringi_1.4.6              maptools_0.9-5             desc_1.2.0                
 [69] e1071_1.7-2                checkmate_1.9.4            pkgbuild_1.0.6             chron_2.3-55              
 [73] rlang_0.4.5                pkgconfig_2.0.3            systemfonts_0.1.1          assertive.data_0.0-3      
 [77] lattice_0.20-38            purrr_0.3.3                assertive.properties_0.0-4 htmlwidgets_1.5.1         
 [81] tidyselect_0.2.5           processx_3.4.2             assertive.code_0.0-3       magrittr_1.5              
 [85] R6_2.4.1                   geojsonio_0.9.0            DBI_1.0.0                  pillar_1.4.3              
 [89] foreign_0.8-71             withr_2.1.2                assertive.numbers_0.0-2    units_0.6-3               
 [93] tibble_3.0.0               labelVector_0.1.1          crayon_1.3.4               assertive.types_0.0-3     
 [97] uuid_0.1-2                 KernSmooth_2.23-15         utf8_1.1.4                 usethis_1.5.1             
[101] grid_3.6.1                 callr_3.4.3                digest_0.6.25              classInt_0.3-3            
[105] xtable_1.8-4               httpuv_1.5.2               openssl_1.4.1              munsell_0.5.0             
[109] assertive.reflection_0.0-4 sessioninfo_1.1.1          askpass_1.1               

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

1 participant