Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

URL using bad/illegal format or missing URL #130

Open
erikzwart opened this issue Jun 6, 2024 · 0 comments
Open

URL using bad/illegal format or missing URL #130

erikzwart opened this issue Jun 6, 2024 · 0 comments

Comments

@erikzwart
Copy link
Contributor

Consider the following code:

library(dsUpload)
armadillo_url <- "armadillo-demo.molgenis.net"

login_data <- data.frame(
  server = armadillo_url,
  driver = "ArmadilloDriver"
)

du.login(login_data = login_data)

This works as expected however next I want to upload some data:

du.upload(
  cohort_id = "inma",
  dict_version = "1_3",
  dict_kind = "outcome_ath",
  data_version = "1_1",
  data_input_format = "CSV",
  data_input_path = "<PATH>/ds-upload/inst/examples/data/demo/demo-athlete-outcome.csv",
  action = "all",
  run_mode = "NORMAL",
  upload = TRUE
)

DsUpload fails:
image

URL using bad/illegal format or missing URL

How to fix

Make sure the server url contains https://

Add a check in du.login() that will make sure the user is prompted to provide a valid url:

armadillo_url <- "https://armadillo-demo.molgenis.net"

Tested with dsUpload version: dsUpload_5.0.3

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant