Streamlit cloud can't find creds.json

I have put my credentials in .streamlit/creds.json and put the file in .gitignore. Locally my streamlit app works but when I want to put it online it can’t find the file.

FileNotFoundError: [Errno 2] No such file or directory: ‘.streamlit/creds.json’

How do I fix this without having the file shown in github? In the streamlit interface I can put secrets but only in a toml file and I want json

Of course not, why should that work? There is no magic data transmission…

Stick to the docs:
https://docs.streamlit.io/streamlit-community-cloud/get-started/deploy-an-app/connect-to-data-sources/secrets-management

2 Likes

Fixed it into the toml file.

Now it works, thanks

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