Sporadic "st.secrets has no key GOOGLE_CLIENT_ID" when deployed on the Community Cloud

Hi Streamlit community,

So, I’m not doing anything fancy. I’m connecting to GSC and I have a standard bit of code that sometimes (only sometimes) raises an error and says that the secret is not in the secrets file (it is).

CLIENT_ID = st.secrets['GOOGLE_CLIENT_ID']

This only happens when I deploy on the Community Cloud.

And here is the thing: all the other secrets in my secrets.toml file are working correctly all the time. This one though? Every 5th or 6th rerun, the app can’t find the secret. The way to fix it (temporarily) is to change anything in the secrets file.
Doesn’t have to be “GOOGLE_CLIENT_ID”. I’ve actually created a dummy secret and just change the first letter of the dummy secret’s name every time and that gets it to work.