Secrets, expected str, bytes or os.PathLike object, not AttrDict

Hi everyone, first sorry for my bad english but I have an issue, I try to work with the google Big query and try to put the secrets.toml but I have this error expected str, bytes or os.PathLike object, not AttrDict.

But If i write. st.write(st.secrets[“gcp_service_account”) It write my secrets.

Thanks for those who help me !

Hey @cedrics41,

Can you share a code snippet so we can try to reproduce the issue you’re seeing?