aliyun-tablestore-go-sdk icon indicating copy to clipboard operation
aliyun-tablestore-go-sdk copied to clipboard

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

Open 0xwang-coder opened this issue 6 years ago • 1 comments

场景: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

0xwang-coder avatar May 28 '19 05:05 0xwang-coder

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

jokimina avatar Apr 10 '24 07:04 jokimina