Getting continuous json exception while fetching quote for "NSE:NIFTY BANK"

neerleo88
Hi @rakeshr , @sujith

I am repeatedly getting exception(not every time) while fetching quote for "NSE:NIFTY BANK". Please find below the exception.

class="Quote">Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\kiteconnect\connect.py", line 899, in _request
data = json.loads(r.content.decode("utf8"))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\json\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test_automatic_order_placement.py", line 3617, in <module>
qoute=kite.quote("NSE:NIFTY BANK")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\kiteconnect\connect.py", line 571, in quote
data = self._get("market.quote", params={"i": ins})
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\kiteconnect\connect.py", line 836, in _get
return self._request(route, "GET", url_args=url_args, params=params, is_json=is_json)
Please provide solution ASAP as my Algo is continuously stopping And today is a good day for trading by looking price action
This discussion has been closed.