Anyone using python / boto3 to upload

Anyone using python / boto3 to upload to r2? I'm getting Invalid Argument: X-Amz-Security-Token error when I try to upload. I've verfied that all variables are right: bucket, endpoint_url, region, access_key, secret_key, session_token
1 Reply
ring0
ring0OP8mo ago
in case anyone else stumbles across this, the answer is to NOT include aws_session_token=SESSION_TOKEN, when building the client or resource object
Want results from more Discord servers?
Add your server