Based on the error message, it does not look like a Streamlit-specific issue. My best guess is that you need to figure out how to parse json responses from the API youโre querying and handle exceptions.
It might be the case that the cowin API is either rate-limiting or banning your heroku IP and returning a malformed response that isnโt being handled in lines 110-111
Happy Streamlit-ing!
Snehan