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.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.