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

Error for a an upload with many files #19

Open
kvz opened this issue Aug 24, 2020 · 4 comments
Open

Error for a an upload with many files #19

kvz opened this issue Aug 24, 2020 · 4 comments

Comments

@kvz
Copy link

kvz commented Aug 24, 2020

image

@kittaakos
Copy link

I do not know if my error is related or not, but I cannot upload artifacts from a directory:

##[error]AccessDenied: Access Denied
/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:6786
            throw err;
            ^

Error [TypeError]: Cannot read property 'Key' of undefined
    at ManagedUpload.callback (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:2459:36)
    at Response.finishSinglePart (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:20929:28)
    at Request.<anonymous> (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:7124:18)
    at Request.callListeners (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:11458:20)
    at Request.emit (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:11430:10)
    at Request.emit (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:7443:14)
    at Request.transition (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:6777:10)
    at AcceptorStateMachine.runTo (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:14564:12)
    at /home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:14576:10
    at Request.<anonymous> (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.2/dist/index.js:6793:9) {
  message: "Cannot read property 'Key' of undefined",
  code: 'TypeError',
  time: 2020-08-24T13:08:10.240Z

Version: v1.1.2

@kvz
Copy link
Author

kvz commented Aug 24, 2020

Was able to workaround this via:

      - name: Upload to S3
        run: |
          aws s3 sync --region us-east-1 --acl public-read ./_site/ s3://mybucket.example.com
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}        

@macobo
Copy link

macobo commented Oct 15, 2020

Can confirm, same issue occurred for me for uploading a directory with a single file.

@chenghuang-mdsol
Copy link

same error, was uploading 12 files in a folder.
Can't use this action anymore

tsekityam added a commit to tsekityam/ark-funds-historical-fund-holdings-and-intraday-trades that referenced this issue Mar 6, 2021
`shallwefootball/s3-upload-action` doesn't work with multiple files

see: shallwefootball/upload-s3-action#19
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

4 participants