error when connecting to amazon s3

Hi, I created an user on aws, set up the "AmazonS3FullAccess" policy and generated the access keys.

But I get an error on wordpress when trying to choose the bucket or test connection.

Unknown: errno:2 curl_setopt() expects parameter 2 to be long, string given / on line 621

Here´s a screenshot:

Am I doing something wrong?