You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to fix it with the google client instead of the default vasa one!
defkey_exists(bucket, key):
# Return true if a key exists in s3 bucket# TODO: return None from the get functions if the key doesn't exist?# (this would avoid one round-trip to S3)client=get_s3_client_google()
print(client._endpoint.host)
try:
client.head_object(Bucket=bucket, Key=key)
returnTrueexceptbotocore.exceptions.ClientErrorasexc:
ifexc.response['Error']['Code'] !='404':
raisereturnFalseexcept:
raise
instead of
defkey_exists(bucket, key):
# Return true if a key exists in s3 bucket# TODO: return None from the get functions if the key doesn't exist?# (this would avoid one round-trip to S3)client=get_s3_client()
print(client._endpoint.host)
try:
client.head_object(Bucket=bucket, Key=key)
returnTrueexceptbotocore.exceptions.ClientErrorasexc:
ifexc.response['Error']['Code'] !='404':
raisereturnFalseexcept:
raise
in src.mldb.s3_utils.py. This issue was helpful for this: #9
Hey, I am unable to download the objectnet test set -- is the server down for some reason?
The text was updated successfully, but these errors were encountered: