Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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