lark icon indicating copy to clipboard operation
lark copied to clipboard

StartHeatbeat should send error if resp.Code is not 0

Open ranggarmaste opened this issue 1 year ago • 1 comments
trafficstars

err = bot.StartHeartbeat() will not return error if StartHeartBeat returns response with non-0 Code, and then it will send TenantAppAccessToken as an empty string

I think we should throw an error instead for the first attempt of GetAccessTokenInternal? I encountered a stupid error of setting up the app_id wrongly and it took me a while to figure out

ranggarmaste avatar May 08 '24 07:05 ranggarmaste

This idea looks reasonable. Thanks for the feedback.

crispgm avatar May 14 '24 02:05 crispgm