ranaroussi / pystore

Fast data store for Pandas time-series data
Apache License 2.0
556 stars 99 forks source link

collection.list_items() with metadata paremeter is showing "*** json.decoder.JSONDecodeError: Expecting value: line 1 column 198 (char 197)" #52

Closed PShiw closed 3 years ago

PShiw commented 3 years ago

Collection.list_items() with metadata parameter is showing "*** json.decoder.JSONDecodeError: Expecting value: line 1 column 198 (char 197)"

Below is the code.

>>> item = collection.item("NIFTY16JAN2011700PE")
>>> item.metadata
{'': 100653, 'tradingSymbol': 'NIFTY16JAN2011700PE', 'Symbolname': 'NIFTY', 'exchange': 'NFO', 'exchangeSegment': 'nse_fo', 'symbolCode': 'NA', 'instrument': 'OPTIDX', 'lotSize': 75, 'strikePrice': 11700.0, 'expiryDate': '01/16/2020, 00:00:00', 'tickSize': 0.05, 'Created_Date': '06/27/2021, 23:38:07', 'Last_Record_Date': '01/16/2020, 15:18:00', 'Last_Updated': '06/27/2021, 23:38:07', '_updated': '2021-07-06 21:09:19.931785'}
>>> collection.list_items(tradingSymbol = 'NIFTY16JAN2011700PE')
*** json.decoder.JSONDecodeError: Expecting value: line 1 column 198 (char 197)
>>> 
PShiw commented 3 years ago

The issue was with the inserted item. Closing the defect as user error.