Skip to content

Gracefully handle 401 for create #13

@mandarvaze

Description

@mandarvaze

For error code 401 (at least for Webhook.create) resp.body was empty ('') due to this JSON.parse(resp.body) crashes with JSON::ParserError Exception: 859: unexpected token at ''

See this code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions