-
Notifications
You must be signed in to change notification settings - Fork 201
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
java.lang.IllegalArgumentException: wrong number of arguments
when calling s3transfer/upload
#407
Comments
workaround is
|
The workaround doesn't seem sufficient. I'm getting the same error with many attempted permutations of using a map or inline keys and values or using |
@scgilardi I ended up using positional arguments: (s3t/upload (get-auth)
(get-bucket-name bucket-kind) key
(io/input-stream content) {:content-type content-type
:content-length (count content)}) |
@p-himik That worked great. Thank you very much! |
I saw this today in our code and liked the refinement of including commented out keys to get most of the benefit the non-positional calling convention while working around this undesired behavior.
|
results in
I think the issue is that
amazonica.core/best-method
does not distinguish between methods that accept one bean and methods that accept multiple beans. In this case, it has chosenTransferManager.upload(PutObjectRequest,S3ProgressListener)
when it should've chosenTransferManager.upload(PutObjectRequest)
instead.The text was updated successfully, but these errors were encountered: