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

AppTableFieldDescription实体JSON解析出现反序列化错误 #88

Open
Hai-Long-Wang opened this issue May 15, 2023 · 0 comments
Open

Comments

@Hai-Long-Wang
Copy link

背景

给任意列名添加字段描述,调用此接口解析字段名时报错如下:

java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 266 path $.data.items[2].description

在此之前阅读过飞书开源API文档,在通过client获取数据时添加参数,尝试解决

textFieldAsArray(true)

报错如下:

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 266 path $.data.items[2].description

另外,在添加字段描述之后触发上述BUG,我尝试删除字段描述来恢复原状,但发现JSON字符串解析出来仍会维护一个description空列表,我截取部分JSON解析串如下:
image

复现方式

任意创建多维表格,给任意列名添加字段描述,调用该接口必现JSON反序列化失败

现状及期望

  1. JSON解析反序列化失败
  2. 删除字段描述值仍存在空列表

如上述中,删除之后仍然会存在空列表,如果我想恢复只能通过回滚或者删除该列之后重新创建,但是对于数据量过大的多维表格,这样处理代价太大了,希望飞书团队可以帮忙处理一下该问题

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