jittering / traefik-kop

A dynamic docker->redis->traefik discovery agent
MIT License
190 stars 14 forks source link

Traefik / redis error #25

Closed judzk closed 1 year ago

judzk commented 1 year ago

Hi, i have a error in the traefik log when I enable redis : level=error msg="KV connection error: strconv.ParseInt: parsing \"3.1536e+08\": invalid syntax," providerName=redis I don't know where traefik find this string. Any idea?

chetan commented 1 year ago

@judzk not clear to me where you are seeing this error. Is it in the logs for your traefik proxy server or in the traefik-kop service? In both cases, I'd need see your config to be of any help.

chazwarp923 commented 1 year ago

I am getting this same error. It appears in the traefik logs right after startup when it is trying to connect to the redis database

chazwarp923 commented 1 year ago

Digging a little deeper it appears to be an error when trying to read an int from the database. however it gets stored in there as scientific notation which is what throws the error. "KV connection error: strconv.ParseInt: parsing \"1.5552e+07\": invalid syntax" Manually setting the value in redis to an actual int eg. 15552000 fixes the error. So perhaps somewhere along the way the int gets incorrectly converted to scientific notation before being stored in the database?

judzk commented 1 year ago

Yes it's worked for me :)

chetan commented 1 year ago

Pushed a fix to properly write floats w/o exponents. Releasing v0.13.2 shortly