use ip:port mode shardcluster,node addr invalid utf8 #3521
              
                Unanswered
              
          
                  
                    
                      xiongzhen27
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| This problem happened by chance and has only occurred twice this month so far | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
The IP connection method used.
Firstly, Redis' IP addresses are a, b, and c. The application only wrote IP a, b. Then c is connected through MOVED response, which will result in invalid utf-8
go-redis 9.7.0
Requesting sharding clusters to use domain name mode will result in an error, while using IP port mode is normal.
The error is as follows
panic: descriptor DescffgName: "redis poo.hit total", help:"Number of times a conneci
1s:{xxxxxxxxxxx ta!
invalid: label value "10.192.1.63:7017\x9
6r" is not valid UTF-8
goroutine 300927175 [running]:github.com/prometheus/client golang/prometheus.(*wrappingRegisterer).MustRegister(0xc0(77?})/go/pkg/mod/github.com/prometheus/clientolang@v1.18.0/prometheus/wrap.go:104 +0x151
Beta Was this translation helpful? Give feedback.
All reactions