redis-datasets icon indicating copy to clipboard operation
redis-datasets copied to clipboard

Error running redistimeseries/StockPrice/redisTimeSeriesQuerySamples.py - rts.range( ...

Open igoralves1 opened this issue 2 years ago • 0 comments

I am using env Python 3.10.6. When I run python3 redisTimeSeriesQuerySamples.py located at redistimeseries/StockPrice/redisTimeSeriesQuerySamples.py I am getting the following error:

Traceback (most recent call last):
  File "/home/igor/vhosts/redis-datasets/redistimeseries/StockPrice/redisTimeSeriesQuerySamples.py", line 23, in <module>
    dailyRSI15MinRange = rts.range(  'DAILYRSI15MINRNG:GS'
  File "/home/igor/vhosts/redis-datasets/redistimeseries/StockPrice/env/lib/python3.10/site-packages/redistimeseries/client.py", line 447, in range
    return self.redis.execute_command(self.RANGE_CMD, *params)
  File "/home/igor/vhosts/redis-datasets/redistimeseries/StockPrice/env/lib/python3.10/site-packages/redis/client.py", line 901, in execute_command
    return self.parse_response(conn, command_name, **options)
  File "/home/igor/vhosts/redis-datasets/redistimeseries/StockPrice/env/lib/python3.10/site-packages/redis/client.py", line 915, in parse_response
    response = connection.read_response()
  File "/home/igor/vhosts/redis-datasets/redistimeseries/StockPrice/env/lib/python3.10/site-packages/redis/connection.py", line 756, in read_response
    raise response
redis.exceptions.ResponseError: TSDB: wrong toTimestamp

Does someone know what could be this issue? Thanks

igoralves1 avatar Jun 23 '23 19:06 igoralves1