I’m trying to deploying my streamlit app with AWS Cloudfront.
The streamlit server is dockerized and run in a ECS Service with an Application ELB without problems.
But when I’m trying to use Cloudfront with the ELB address as origin the application stay in a loop showing me “Please wait…” as in this image
In the console I can see that that every second are raised two errors:
- WebSocket connection to ‘’ failed: WebSocket is closed before the connection is established.
- main.cf1968bf.chunk.js:2 Uncaught Error: Unsupported state transition.
my current config.toml file is like this:
disableWatchdogWarning = false
sharingMode = “off”
showWarningOnDirectExecution = true
level = “info”
caching = true
displayEnabled = true
magicEnabled = true
installTracer = false
fixMatplotlib = true
fileWatcherType = “auto”
headless = true
liveSave = false
runOnSave = false
port = 8501
baseUrlPath = “”
maxUploadSize = 50
enableCORS = false
enableWebsocketCompression = false
serverAddress = “0.0.0.0”
gatherUsageStats = false
serverPort = 8501
token = “pk.eyJ1IjoidGhpYWdvdCIsImEiOiJjamh3bm85NnkwMng4M3dydnNveWwzeWNzIn0.vCBDzNsEF2uFSFk2AM0WZQ”
keyPrefix = “”
I’ve tried several combinations of those three values
but don’t seems like a problem related to them.
Have you experencied something like this or do you have any idea?