jugaad-py / jugaad-trader

Unofficial python client for Zerodha
https://marketsetup.in/documentation/jugaad-trader/
157 stars 112 forks source link

DataException #49

Closed csatoskar closed 1 year ago

csatoskar commented 2 years ago

DataException Traceback (most recent call last) in 70 sr='NFO:NIFTY22'+exp+ str(int(n['atmn'][i])) +'PE' 71 get_data = kite.historical_data(kite.ltp(sr)[sr]['instrument_token'],dates.strftime('%Y-%m-%d'), ---> 72 datee.strftime('%Y-%m-%d'), '15minute',) 73 try: 74 nd1=(pd.DataFrame(get_data))['close'][i]

2 frames /usr/local/lib/python3.7/dist-packages/jugaad_trader/zerodha.py in _request(self, route, method, parameters) 194 raise ex.DataException("Unknown Content-Type ({content_type}) with response: ({content})".format( 195 content_type=r.headers["content-type"], --> 196 content=r.content)) 197 198 def get_chunk_js(self):

DataException: Unknown Content-Type (text/html; charset=UTF-8) with response: (b'<!DOCTYPE html>\n\n\n Just a moment...\n \n \n \n \n \n \n\n\n\n

\n
\n

\n <img class="heading-favicon" src="/favicon.ico"\n onerror="this.onerror=null;this.parentNode.removeChild(this)">\n kite.zerodha.com\n

\n

\n Checking if the site connection is secure\n

\n \n <div id="trk_jschal_js" style="display:none;background-image:url...

sevakram commented 1 year ago

Closing issue for cleanup, please report again if issue persists