Hi, I am getting the below error intermittently while trying to retrieve the instruments through kite.instruments kiteconnect.exceptions.DataException: Unknown Content-Type (text/html) with response: (b'\r\n502 Bad Gateway\r\n\r\n
Kite instruments file is a huge csv dump that contains data about all the instruments that are traded for the day. It is recommended to fetch this and cache it locally at your end every day once. The local cache should be the source for all your instruments data requirements and not the upstream.
This is an error from the Cloudflare, we will raise it with them.
This is an error from the Cloudflare, we will raise it with them.
How many times do you fetch this file in a day?