Skip to content

Customer.queryStream: error 'Arguments should be functions, arrays or streams' from stream-chain replaces orginal error from the API #522

@evil-shrike

Description

@evil-shrike

in customer.handleStreamError
you create a Chain instance from stream-chain with an error from Axios recieved from the API
{error: 'invalid_grant', error_description: 'Bad Request'}:

static make(fns, options) {
return new Chain(fns, options);
}

Image

and this leads to throwing and Error 'Arguments should be functions, arrays or streams' from the customer.queryStream which is very confusing.

Image

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