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 with validation #3

Open
ChrisGrigg opened this issue Jun 30, 2016 · 5 comments
Open

Error with validation #3

ChrisGrigg opened this issue Jun 30, 2016 · 5 comments

Comments

@ChrisGrigg
Copy link

Hi I'm getting the following error in my CloudWatch logs:

START RequestId: d27a3501-3eac-11e6-bd3d-bd0a79092cb0 Version: $LATEST
module initialization error: MissingRequiredParameter at ParamValidator.fail (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:50:37) at ParamValidator.validateStructure (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:61:14) at ParamValidator.validateMember (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:88:21) at ParamValidator.validate (/var/runtime/node_modules/aws-sdk/lib/param_validator.js:34:10) at Request.VALIDATE_PARAMETERS (/var/runtime/node_modules/aws-sdk/lib/event_listeners.js:89:42) at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:105:20) at callNextListener (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:95:12) at /var/runtime/node_modules/aws-sdk/lib/event_listeners.js:75:9 at finish (/var/runtime/node_modules/aws-sdk/lib/config.js:307:7) at /var/runtime/node_modules/aws-sdk/lib/config.js:323:9
END RequestId: d27a3501-3eac-11e6-bd3d-bd0a79092cb0

Any ideas?

@brian-kephart
Copy link

I am getting the same error.

@chrsgrffth
Copy link

chrsgrffth commented Nov 4, 2016

You can get past this by adding { paramValidation: false } to the s3 class, like so:

s3 = new aws.S3({ paramValidation: false })

This probably won't get things working completely, but it will at least help getting further along to figure out which params needs attention since the AWS error doesn't specify which parameter is missing.

@CraftLogan
Copy link

Same here. Fixed the first error message with @chrsgrffth suggestion but now I am getting "TypeError: handler is not a function" Any idea's? Thanks

@Lunteer
Copy link

Lunteer commented Feb 7, 2019

Has anyone gotten past this point? I also have the error "TypeError: handler is not a function".

I should note that to deploy I had to change the nodejs4.3 to nodejs8.10, not sure that has an effect.

@Lunteer
Copy link

Lunteer commented Feb 7, 2019

The answer to this issue was right here in the issues. Check out https://github.com/sourcey/s3-image-optimizer/issues/6. You need to edit the optimizer.js file.

I am up to the issue of getting the bucket name correct :)

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