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

user/department的delete接口报错。 #3

Closed
yuanhaoliang opened this issue Mar 16, 2021 · 2 comments
Closed

user/department的delete接口报错。 #3

yuanhaoliang opened this issue Mar 16, 2021 · 2 comments

Comments

@yuanhaoliang
Copy link

以user的delete方法为例:

 UserDeleteReqBody userDeleteReq = new UserDeleteReqBody();
            Response<EmptyData> response = getClient(feishuApp).getContactService().getUsers().delete(userDeleteReq).setUserIdType("user_id").setUserId("testUserId").execute();
          

输出:

java.lang.NullPointerException
	at com.larksuite.oapi.core.api.handler.subhandler.UnmarshalRespSubHandler.unmarshalResp(UnmarshalRespSubHandler.java:56)
	at com.larksuite.oapi.core.api.handler.subhandler.UnmarshalRespSubHandler.handle(UnmarshalRespSubHandler.java:37)
	at com.larksuite.oapi.core.api.handler.Handler.handle(Handler.java:50)
	at com.larksuite.oapi.core.api.Api.send(Api.java:14)
	at com.larksuite.oapi.service.contact.v3.ContactService$UserDeleteReqCall.execute(ContactService.java:1010)

该用户实际上是删除成功的,只是回包解析有问题,department的delete方法也是同样。

@zhaoche27
Copy link
Contributor

fix, 升级一下版本

@yuanhaoliang
Copy link
Author

感谢光速fix

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