Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

lambda function not working #146

Open
shreyaspapi opened this issue Nov 2, 2020 · 0 comments
Open

lambda function not working #146

shreyaspapi opened this issue Nov 2, 2020 · 0 comments

Comments

@shreyaspapi
Copy link

I followed through the documentation but I am getting an error -

[ERROR] NotADirectoryError: [Errno 20] Not a directory: '/tmp/newsgator-company1/test_data/.6E75683B' -> '/tmp/newsgator-company1/test_data/'
Traceback (most recent call last):
  File "/var/task/scan.py", line 224, in lambda_handler
    s3_object.download_file(file_path)
  File "/var/runtime/boto3/s3/inject.py", line 314, in object_download_file
    ExtraArgs=ExtraArgs, Callback=Callback, Config=Config)
  File "/var/runtime/boto3/s3/inject.py", line 172, in download_file
    extra_args=ExtraArgs, callback=Callback)
  File "/var/runtime/boto3/s3/transfer.py", line 307, in download_file
    future.result()
  File "/var/runtime/s3transfer/futures.py", line 106, in result
    return self._coordinator.result()
  File "/var/runtime/s3transfer/futures.py", line 265, in result
    raise self._exception
  File "/var/runtime/s3transfer/tasks.py", line 126, in __call__
    return self._execute_main(kwargs)
  File "/var/runtime/s3transfer/tasks.py", line 150, in _execute_main
    return_value = self._main(**kwargs)
  File "/var/runtime/s3transfer/download.py", line 601, in _main
    osutil.rename_file(fileobj.name, final_filename)
  File "/var/runtime/s3transfer/utils.py", line 273, in rename_file
    rename_file(current_filename, new_filename)

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

No branches or pull requests

1 participant