The solution seemed to work, but unfortunately only briefly before the problem appeared again. Since nothing in the dependencies or the secrets.toml file has changed I assume it must be connected to the gsheets package.
Since the app still works fine when I run it locally I have absolutely no idea what the exact issue might be.
Every help is appreciated.
I’ve just discovered what was the problem in my case, since I was receiving the same message only for the deployed app, while locally app worked fine.
I didn’t have set secrets on Settings->Secrets tab. When I pasted secrets.toml content here, It worked.
I am experiencing a similar issue. My application functions correctly, and I am able to input data accurately, which is reflected in Google Sheets. However, upon deploying to GitHub with the .streamlit folder and the secrets.toml file, I encounter the error message: GSheets Connection - “Spreadsheet must be specified.” Mr. Jose suggested a solution, stating, “set secrets on Settings->Secrets tab. When I pasted the contents of secrets.toml here,” but I find this unclear. Could you please provide screenshots demonstrating how he resolved this issue?