orchestracities / ngsi-timeseries-api

QuantumLeap: a FIWARE Generic Enabler to support the usage of NGSIv2 (and NGSI-LD experimentally) data in time-series databases
https://quantumleap.rtfd.io/
MIT License
38 stars 49 forks source link

Something wrong happen with some measure #768

Closed tzzed closed 1 month ago

tzzed commented 1 month ago

Describe the bug For some measure I get the following error

-- | -- | --
  |   | 2024-07-31 16:49:15.216 | self.port = r.read(IntVar(POSTGRES_PORT_ENV_VAR, self.port)) |  
  |   | 2024-07-31 16:49:15.216 | File "/src/ngsi-timeseries-api/src/utils/cfgreader.py", line 148, in read |  
  |   | 2024-07-31 16:49:15.216 | return var.read(env_value) |  
  |   | 2024-07-31 16:49:15.216 | File "/src/ngsi-timeseries-api/src/utils/cfgreader.py", line 47, in read |  
  |   | 2024-07-31 16:49:15.216 | return self._do_read(rep) |  
  |   | 2024-07-31 16:49:15.216 | File "/src/ngsi-timeseries-api/src/utils/cfgreader.py", line 70, in _do_read |  
  |   | 2024-07-31 16:49:15.216 | return int(rep) |  
  |   | 2024-07-31 16:49:15.216 | ValueError: invalid literal for int() with base 10: 'tcp://10.X.X.X:5432'

Expected behavior the measure should be inserted in Timescale

Environment (please complete the following information):

tzzed commented 1 month ago

The bug fixed after changing configuration. thank you!

tzzed commented 1 month ago

OK I finally found the problem, the POSTGRES_PORT was changed in the configuration.