Skip to content

REST helper: Global axios instance gets mutated #2652

@pablopaul

Description

@pablopaul

Here the global axios instance gets mutated, this leads to an ugly error, when another module depends on the axios defaults like the node-slack-sdk does. See this issue for reference.

The error then is TypeError: Cannot convert undefined or null to object at new WebClient (.../node_modules/@slack/web-api/dist/WebClient.js:110:44)

Please advice how to move this from a global mutation to a local mutation so we are compatible with third party modules.

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