Hi @stockmaniacs -
If this works locally, but not on Streamlit Cloud, it might be the case that https://www.nseindia.com
blocks traffic from Google Cloud. This occasionally happens when sites think people are running web scraping, and unfortunately, there’s no way for us to appeal to them.
Since this error is happening at the JSONDecode step, rather than the actual call, I would dump the requests object to see what the return code was, so that you can hopefully get a better idea of what’s happening. I would guess that you are getting a 4xx error of some sort.
Best,
Randy