Error: Been getting 0000-01-01 as authorized dates in holdings and trades.

krisys
krisys edited May 7 in Python client
This has been happening from the past week or so. Discarded it as a transient thing initially, but looks like it is persisting. So thought of reporting the same. Any pointers will be helpful.

File "/usr/local/lib/python3.11/dist-packages/kiteconnect/connect.py", line 433, in trades
return self._format_response(self._get("trades"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/kiteconnect/connect.py", line 409, in _format_response
item[field] = dateutil.parser.parse(item[field])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/dateutil/parser/_parser.py", line 1374, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/dateutil/parser/_parser.py", line 657, in parse
six.raise_from(ParserError(e.args[0] + ": %s", timestr), e)
File "", line 3, in raise_from
dateutil.parser._parser.ParserError: year 0 is out of range: 0000-01-01 11:07:45
  • sujith
    Thank you for reporting. We have informed the team to take a look at this.
  • krisys
    @sujith , any update on this?
  • krisys
    Tagging @Kailash as well. Still encountering this error.
  • sujith
    We have informed the team to prioritize this. It should be resolved in a couple of days.
  • sujith
    This should be fixed today. Can you check and let us know?
  • krisys
    Encountered this error today as well.
  • sujith
    Can you private message the client id, sample response and time at which you tried?
    We checked for one of our id and it seems fine.
Sign In or Register to comment.