Public link crashes after 30seconds - html doctype

Hello this is my first topic so i'm trying to give as much informations as possible .
I have a public link that has two inbox that will filter the data according to those two values. The query has a bit of calculation since i'm using md5 function in it.
The query works fine on Metabase, but with the public link, it displays only for 20 seconds then itthe whole page changes to some html languages markups that begins with "!Doctype html" and some html codes.

Why does it happend and especially why after the results are done loading ?
" | 504: Gateway time-out"

"browser-info": {
"language": "fr-FR",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36",
"vendor": "Google Inc."
"system-info": {
"file.encoding": "UTF-8",
"": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.8+10",
"java.vendor": "AdoptOpenJDK",
"java.vendor.url": "",
"java.version": "11.0.8",
"": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.8+10",
"": "Linux",
"os.version": "4.14.186-146.268.amzn2.x86_64",
"user.language": "en",
"user.timezone": "Europe/Paris"
"metabase-info": {
"databases": [
"hosting-env": "elastic-beanstalk",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "10.15"
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.2.8"
"run-mode": "prod",
"version": {
"date": "2020-08-17",
"tag": "v0.36.4",
"branch": "release-0.36.x",
"hash": "196c1f6"
"settings": {
"report-timezone": null

Hi @loeurrich
That's your reverse-proxy that is closing the connection after 30 seconds - change the timeout on that.
By the way, latest release is

Thanks @flamber for the quick answer ! I'm a bit new to this subject, how do I change the timeout of my reverse-proxy ? Is it on Metabase or on my computer ?
Also I send this link to a client, does he need to change his timeout ?
Thanks in advance for any hints you could provide

@loeurrich I can only see that you're using Cloudflare in front of Metabase, so I'm guessing that you're the error from that - but it could also be that you are using ALB on AWS.
It has nothing to do with Metabase or your computer - it's how Metabase hosted and what has been added to that.

I find it weird that it only happens when I fill a certain value in my filter, do you @flamber have any idea ?

Sorry, wrong misconception, it actually happens for other values too now, i'm going to try to do as you say and change the timeout