Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
Description
my code is:
package main import ( "database/sql" "fmt" _ "github.com/apache/calcite-avatica-go/v5" ) func main() { db, err := sql.Open("avatica", "http://10.120.100.134:2181/bi") fmt.Println("Come in please") if err != nil { fmt.Printf("The error is %v\n", err) } if err := db.Ping(); err != nil{ fmt.Printf("opon database fail, %+v", err) return } fmt.Println("connnect success") }
i encounter the issue:
// code placeholder opon database fail, error executing http request: github.com/apache/calcite-avatica-go/v5.(*httpClient).post /Users/yangyang/.gvm/pkgsets/system/global/pkg/mod/github.com/apache/calcite-avatica-go/v5@v5.0.0/http_client.go:131 - Post "http://10.120.100.134:2181/bi": EOF[bi@ip-10-120-12-23 ~]$ telnet 10.120.100.134 2181
I have test phoenix port is ok
// code placeholder telnet 10.120.100.134 2181 ---- Trying 10.120.100.134... Connected to 10.120.100.134. Escape character is '^]'.