Failing to get results in working custom sql query

Hi everyone! Have been using MB since 2021, first time posting :slightly_smiling_face: , here are the details:

Browser: Safari 18.3, Chrome 152.0.

OS: MacOS Sequoia 15.3.1

Database type: Postgres

Metabase v0.59.2.6 Built on 2026-03-13 Hash: d2a5450

Metabase hosting environment: Diagnostic info mentions unknown (?)

Metabase's internal database type: H2

Diagnostic info:

{
"browser-info": {
"language": "en-GB",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15",
"vendor": "Apple Computer, Inc."
},
"metabase-info": {
"databases": [
"postgres"
],
"run-mode": "prod",
"plan-alias": "",
"version": {
"date": "2026-03-13",
"tag": "v0.59.2.6",
"hash": "d2a5450"
},
"settings": {
"report-timezone": null
},
"hosting-env": "unknown",
"application-database": "h2",
"application-database-details": {
"database": {
"name": "H2",
"version": "2.1.214 (2022-06-13)"
},
"jdbc-driver": {
"name": "H2 JDBC Driver",
"version": "2.1.214 (2022-06-13)"
}
}
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "21.0.10+7-LTS",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "21.0.10",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "21.0.10+7-LTS",
"os.name": "Linux",
"os.version": "6.8.0-88-generic",
"user.language": "en",
"user.timezone": "UTC"
}
}

Description: I have a working custom sql query that runs in ~65โ€. It returns two columns, user_id and connections (int) and has approximately 6k lines, but when I try to get sum(connections) I get a Runtime error (> 125โ€) or a Download error if I try to get the results file (no matter if i choose csv/xlsx format).
Tried this in Safari (TypeError: Load failed) and Chrome (Failed to fetch).
Any ideas?

Thanks for your time!

Are you running Metabase through a reverse proxy? If so, increase the connection timeout. The default timeout in Metabase is 20 minutes. If youโ€™re getting cut off after 2 minutes then itโ€™s something else dropping the connection.