Skip to content

URL using bad/illegal format or missing URL #130

@erikzwart

Description

@erikzwart

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions