OHDSI / OhdsiSharing

Package for sharing of the results of the OHDSI tools
http://ohdsi.github.io/OhdsiSharing/
4 stars 8 forks source link

Cannot detect correct region from bucket #2

Closed PRijnbeek closed 7 years ago

PRijnbeek commented 7 years ago

When using submitResults i get the following message:

Error in get_region.default(bucket, key = key, secret = secret, session_token = session_token) : Cannot detect correct region from bucket

There seem to be some known issues with aws.s3?: https://github.com/cloudyr/aws.s3/issues/106

msuchard commented 7 years ago

@PRijnbeek - do you think if I added a region parameter (defaulted to the correct region) to submitResults() all will work well?

PRijnbeek commented 7 years ago

I tried this: result <- OhdsiSharing::putS3File(file = zipName, bucket = "ohdsi-study-plp", key = key, secret = secret, region = "us-east-1")

but still the same problem.

By the way it is already default in the putS3File function: OhdsiSharing::putS3File function (file, bucket, region = "us-east-1", key, secret, appendUuid = TRUE)

schuemie commented 7 years ago

It seems the aws.s3 package has some different behavior than before. I just made some modifications that solve the problem on my end (I can push files, but I don't know whether they actually arrive).

Could you reinstall the package and try again?

PRijnbeek commented 7 years ago

Checked and works fine now, i also see your uploaded files in the bucket.

Thanks.