Skip to content

StartHeatbeat should send error if resp.Code is not 0 #73

@ranggarmaste

Description

@ranggarmaste

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions