This used to happen before we disabled some tests:
I wasn't able to pinpoint the actual problem. Everything is fine as long as we use only one routing key, but as soon as we used multiple keys, all hell breaks loose...
I checked that the signing library apparently works fine; or at least it behaves similarly to the official python library for this specific request.
enable full logging of requests/responses in Apache HTTP Client:
You'll see an aws request id in the response to the request that failed. Maybe we can find more information about what went wrong in Amazon Athena by querying the logs: https://us-east-1.console.aws.amazon.com/athena/home?force&force=®ion=us-east-1#query