Grafana Gateway timeout

Hi. I’m currently using Loki but I’m getting this error while querying from Grafana:

<html> <head><title>504 Gateway Time-out</title></head> <body> <center><h1>504 Gateway Time-out</h1></center> </body> </html>

I’m currently using Grafana Gateway.

Thanks in advance.