301 for hosted Streamlit application with Redirect loop - AWS, EKS, and Istio reverse proxy

Hi there,

Iโ€™ve deployed a Stream-lit application on EKS in AWS with a containerised solution. Iโ€™m exposing it via API Gateway which is using a VPC Link and then proxies calls into my EKS Cluster. I have a toml file that looks like this:

toolbarMode = "auto"

font="sans serif"

enableCORS = false
enableXsrfProtection = false
headless = true
baseUrlPath = "streamlit"

I am hosting it on a url, letโ€™s say itโ€™s [Redacted].api.myurl.com. When I access [Redacted].api.myurl.com/streamlit/healthz I get a 200 โ€˜okโ€™ response as I expect. However when I try and access the application under [Redacted].api.myurl.com/streamlit/ I end up in a huge redirect loop where it keeps attempting to load that same url. I have tried setting browser.serverAddress and a bunch of different configuration but I have no luck.

My EKS has a Gateway, VirtualService and Service but iโ€™m assuming thatโ€™s all configured correctly along with my AWS components since I am able to hit the health check endpoint.

If any more information is needed to debug this, I can provide it. Any help here would be greatly appreciated!

Hi @Carlton_Sandhu

Would adding a forward slash preceding streamlit so that it becomes /streamlit help to resolve the issue?

More in this forum post:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.