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

连接maxcompute出错 #24

Open
net-lin-dev opened this issue Apr 26, 2024 · 1 comment
Open

连接maxcompute出错 #24

net-lin-dev opened this issue Apr 26, 2024 · 1 comment

Comments

@net-lin-dev
Copy link

No description provided.

@net-lin-dev
Copy link
Author

代码入下:
dsn := "http://XXXX:[email protected]/api?project=ypl_to_lyy_dwh&TunnelEndpoint=http://dt.cn-shenzhen.maxcompute.aliyun.com"

fmt.Println("dsn", dsn)
db, err := sql.Open("odps", dsn)
if err != nil {
	log.Fatalf("%+v", err)
}

selectSql := "select * from ypl_to_lyy_dwh.dwd_ypl_delivered_di limit 1"
rows, err := db.Query(selectSql)
fmt.Println(rows, "#####", err)

怎么直接报错:
Post "http://service.cn-shenzhen.maxcompute.aliyun-inc.com/api/projects/ypl_to_lyy_dwh/instances?curr_project=ypl_to_lyy_dwh": EOF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant