Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something wrong happen with some measure #768

Closed
tzzed opened this issue Jul 31, 2024 · 2 comments
Closed

Something wrong happen with some measure #768

tzzed opened this issue Jul 31, 2024 · 2 comments
Assignees

Comments

@tzzed
Copy link

tzzed commented Jul 31, 2024

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):

  • kubernetes
  • QuantumLeap Version 1.0.0
    Additional context
    This happen only with few measure and only in kubernetes environment. Cannot reproduce locally.
@tzzed
Copy link
Author

tzzed commented Aug 2, 2024

The bug fixed after changing configuration. thank you!

@tzzed tzzed closed this as completed Aug 2, 2024
@tzzed tzzed reopened this Aug 2, 2024
@tzzed
Copy link
Author

tzzed commented Aug 2, 2024

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

@tzzed tzzed closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants