Skip to content
Advertisement

Getting NoSuchMethoError While uploading file on Amazon S3 bucket

I was trying upload the file in Amazon s3 bucket using the server-less architecture below is the described flow

ApiGateway->lambda->s3bucket

I am sending Request using postman, image is encoded into the base64 format and passed in key”base64″ then convert it into inputstream and passing in putObject method but this where error is occurring it says NoSuchMethodError for puObject method but getting the below error

error stack trace:

JavaScript

Used method:

JavaScript

Advertisement

Answer

please make sure you are using same version aws-java-sdk-core and aws-java-sdk-s3 and are of newest versions for example:-

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement