molgenis / molgenis-r-datashield

Armadillo implementation of DSI to be DataSHIELD ready, part of the MOLGENIS suite
https://molgenis.github.io/molgenis-r-datashield/
0 stars 3 forks source link

More informative error messages when loading workspace which doesn't exist #57

Closed timcadman closed 3 months ago

timcadman commented 3 years ago

Logging into the collaborating servers Login hgs [========================================>-----------------------------------] 53% / 4sError: Internal server error: org.molgenis.r.exceptions.RExecutionException: org.molgenis.armadillo.exceptions.StorageException: error occurred ErrorResponse(code=NoSuchKey, message=The specified key does not exist., bucketName=user-dbc80766-682e-4334-9e18-6fcc71821c6b, objectName=hgs:bmi_poc_sec_2.RData, resource=/user-dbc80766-682e-4334-9e18-6fcc71821c6b/hgs:bmi_poc_sec_2.RData, requestId=16743112302EFAB8, hostId=0dca6b30-fc17-4b1e-a45a-740bcdacc057) request={method=GET, url=http://localhost:9000/user-dbc80766-682e-4334-9e18-6fcc71821c6b/hgs%3Abmi_poc_sec_2.RData, headers=Accept-Encoding: identity Host: localhost:9000 User-Agent: MinIO (amd64; amd64) minio-java/dev x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date: 20210409T124200Z Authorization: AWS4-HMAC-SHA256 Credential=REDACTED/20210409/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;host;x-amz-content-sha256;x-amz-date, Signature=REDACTED } response={code=404, header

timcadman commented 4 months ago

Attempt to reproduce:

url <- "http://localhost:8080/"
token <- armadillo.get_token(url)

builder <- newDSLoginBuilder()
builder$append(
  url = url,
  server = "armadillo",
  token = token,
  table = "project-1/data/nonrep",
  driver = "ArmadilloDriver")

logindata <- builder$build()

conns <- DSI::datashield.login(logins = logindata, restore = "workspace_does_not_exist")

Received the following error:

Error: lexical error: invalid char in json text.
                                       Something went wrong while read
                     (right here) ------^