Table export bug, when using S3 storage

Having issues with self-hosted Baserow database, when performing table export.
I have an S3 setup, with files stored on backblaze s3 storage - this works fine (upload/download etc…), but when I try to export a specific table, it creates a file on S3, but gives a wrong link to download. This is the S3 response:

<Message>The server cannot or will not process the request due to something that is perceived to be a client error eg malformed request syntax invalid request message framing or deceptive request routing</Message>

Download link:

If I adjust the link manually to (removing the query string):
I can download the file normally…

It looks like a bug. It could be related to table name in the query, that is being rejected by S3 storage.
Some of my other tables can be exported without issue and without removing the query string. So it might depend on the characters that are being passed to URI query.

Possible solution:
Remove query string from download export link, when S3 is set. Give plain link to file.

Everything else works fine, no logged errors.
Installed baserow using official guide
Additionally have setup external PostgreSQL
Additionally have setup external S3 storage (aws)

Baserow Version: 1.20.2 (Docker)
PostgreSQL: v16.1
Docker version: v24.0.7

Ubuntu 20.04.6 LTS (4 Cores, 32Gb ram, 256 SSD)
S3 Provider: Backblaze

Hi @Marktbs, I’m sorry to hear that you’re having some problems. Would you mind trying to set the DOWNLOAD_FILE_VIA_XHR=1 environment variable, and then try again?