Hello
Im trying to deploy and publish my Streamlit app. It is running data directly from an API. The authentication method is basically a whitelisted IP, so as long as you’re on the whitelisted IP, you can connect to the API and extract data. It seems tho that theres an error in this area when im opening the app after deployment. The app is created correctly and it opens it without problems but I get this message:
xml.etree.ElementTree.ParseError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).
Traceback:
File "/mount/src/match-report-app/Match Report.py", line 1324, in <module>
main()File "/mount/src/match-report-app/Match Report.py", line 991, in main
teams_df = fetch_team_data()
^^^^^^^^^^^^^^^^^File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/caching/cache_utils.py", line 219, in __call__
return self._get_or_create_cached_value(args, kwargs, spinner_message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/caching/cache_utils.py", line 261, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/caching/cache_utils.py", line 320, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/mount/src/match-report-app/Match Report.py", line 28, in fetch_team_data
root = ET.fromstring(teams_response.content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.12/xml/etree/ElementTree.py", line 1335, in XML
parser.feed(text)
I might be totally wrong about what the exact error is. Is it possible to deploy and share apps that is connected to API’s with this kind of authentication method?
Thanks!