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

http: panic serving 127.0.0.1:62204: [tablestore] invalid input #42

Open
0xwang-coder opened this issue May 28, 2019 · 1 comment
Open

Comments

@0xwang-coder
Copy link

场景:1、在实例上创建表 2、go客户端连接实例操作数据。

在Sample代码中,遇到两个问题:

1、插入数据时如果不添加pk主键,不返回内容,也不报错,数据库也没有内容
2、客户端数据类型和实例数据类型不一致会导致客户端崩溃,报以下错误:
[HTTP Server] http: panic serving 127.0.0.1:62204: [tablestore] invalid input goroutine 43 [running]: net/http.(*conn).serve.func1(0xc000294aa0)
例如:主键或者某一列在实例中是int(11),在客户端是int8

@jokimina
Copy link

image 因为client发送请求前会进行自我检查,必须是这几种类型才不会出错,报错信息太恶心了...

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

2 participants