Hi @Charly_Wargnier, I am actually facing this very issue when pushing to Heroku. I was wondering what setting you had to change? I am using the Google API to access a Google Sheet for my Streamlit app and I’m using the following Heroku buildpack to generate the credentials.json file needed in the project root. Can you explain what your steps were to troubleshoot this issue and get it working?
Thanks for your response. I am using the google-api-python-client (2.0.2) which I believe allows me to authenticate the app and allows the spreadsheet data to be retrieved. I looked further into this and I think the conflict is when the following is called flow.run_local_server() as it defaults to the following parameters: host=“localhost”, port=8080. I have tried changing the port to something else like 8888 but the issue still persists. I am not sure what I could change the host to as I am deploying it on Heroku. How did you stop this from spawning the local instance? I do believe this is needed for the user (me) to login and authenticate the app.
I got my streamlit app working locally. This is small app that uses Oauth to authenticate a user to spotify and get their top 10 songs and artists. Streamlit (spotify-monthly-wrapped.streamlit.app) . When I deployed it on to the community cloud I got the "OSError: [Errno 98] Address already in use " error.