I was generating a pre-signed url for an S3 file. I had to exclude the Verb key while initializing the GetPreSignedUrlRequest object, and then the path was valid and worked. This error occurred after upgrading to the newest version of the S3 SDK.