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 [TypeError]: Cannot read property 'Key' of undefined #44

Open
PoornaYaganti opened this issue Sep 22, 2022 · 5 comments
Open

Error [TypeError]: Cannot read property 'Key' of undefined #44

PoornaYaganti opened this issue Sep 22, 2022 · 5 comments

Comments

@PoornaYaganti
Copy link

Getting the following error when I try to upload GitHub artifacts to S3.

B```
adRequest: null
/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.3/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.3/dist/index.js:2459:36)
at Response.finishSinglePart (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.3/dist/index.js:20929:28)
at Request. (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.3/dist/index.js:7124:18)
at Request.callListeners (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.3/dist/index.js:11458:20)
at Request.emit (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.3/dist/index.js:11430:10)
at Request.emit (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.3/dist/index.js:7443:14)
at Request.transition (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.3/dist/index.js:6777:10)
at AcceptorStateMachine.runTo (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.3/dist/index.js:14564:12)
at /home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.3/dist/index.js:14576:10
at Request. (/home/runner/work/_actions/shallwefootball/upload-s3-action/v1.1.3/dist/index.js:6793:9) {
code: 'TypeError',
time: 2022-09-22T13:53:20.731Z
}

@nabeelio
Copy link

Same here.

Error: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
/home/runner/work/_actions/shallwefootball/s3-upload-action/master/dist/index.js:6786
            throw err;
            ^

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

@schenniappan-symplr
Copy link

I am also facing the same issue. what is the solution.

@StephanMertel
Copy link

This doesn't seem to be maintained anymore... I ended up using https://github.com/aws-actions/configure-aws-credentials

@nabeelio
Copy link

This doesn't seem to be maintained anymore... I ended up using https://github.com/aws-actions/configure-aws-credentials

Same, ended up being much easier

@srijeyanthan-cx
Copy link

Same, we need the region passed to configuration, but not supported by this library so far, end-up using confgure-aws-credentials, much easier.

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

5 participants