Consider the post solved, I found the issue myself.
When I was deploying my app and it was in the oven the manager gave an error:
[manager] Error checking Streamlit healthz: Get "http://localhost:8501/healthz": dial tcp 127.0.0.1:8501: connect: connection refused
This was already resolved here by changing the config.toml file: