Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Permission/access credentials to download data and models reoccuring #16

Open
alexander-fichtl opened this issue Dec 3, 2022 · 0 comments

Comments

@alexander-fichtl
Copy link

Hi,

First of all, I want to thank you for providing your code and all the support on the occurring issues!

Unfortunately, I had the same issues as user ghost in closed issue #9. I followed the advice in the corresponding thread. Everything worked out except for the
"botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden" occurring for me again. In the thread, the issue was said to be fixed, but it now seems like it has reappeared. Do you have any advice? Would it maybe be possible to re-open the issue?

Heres the full error log:

Downloading and extracting relatedTo...
Traceback (most recent call last):
  File "download_utility/download_relations.py", line 68, in <module>
    sys.exit(main(sys.argv[1:]))
  File "download_utility/download_relations.py", line 64, in main
    download(rel, args.data_dir)
  File "download_utility/download_relations.py", line 36, in download
    bucket_name="wluper-retrograph"
  File "/usr/local/lib/python3.7/dist-packages/waws/bucket_manager.py", line 76, in download_file
    bucket.download_file( final_remote_path, final_local_path )
  File "/usr/local/lib/python3.7/dist-packages/boto3/s3/inject.py", line 283, in bucket_download_file
    Config=Config,
  File "/usr/local/lib/python3.7/dist-packages/boto3/s3/inject.py", line 195, in download_file
    callback=Callback,
  File "/usr/local/lib/python3.7/dist-packages/boto3/s3/transfer.py", line 320, in download_file
    future.result()
  File "/usr/local/lib/python3.7/dist-packages/s3transfer/futures.py", line 103, in result
    return self._coordinator.result()
  File "/usr/local/lib/python3.7/dist-packages/s3transfer/futures.py", line 266, in result
    raise self._exception
  File "/usr/local/lib/python3.7/dist-packages/s3transfer/tasks.py", line 269, in _main
    self._submit(transfer_future=transfer_future, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/s3transfer/download.py", line 357, in _submit
    **transfer_future.meta.call_args.extra_args,
  File "/usr/local/lib/python3.7/dist-packages/botocore/client.py", line 530, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/usr/local/lib/python3.7/dist-packages/botocore/client.py", line 960, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden

Originally posted by @alexander-fichtl in #9 (comment)

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

No branches or pull requests

1 participant