Importing secrets

Unfortunately server doesnt see any secret keys that uploaded via settings menu. i can run my app locally perfectly. but i get ‘key error’ in logs when running my app. i tried to print out all keys saved in app settings it doesnt print out anything rather empty.

KeyError: 'st.secrets has no key "api_key". Did you forget to add it to 
secrets.toml, mount it to secret directory, or the app settings on Streamlit 

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