Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

NodeServices: Can't pipe result stream from chained success callback #298

Description

@ajtowf

Can't seem to pipe to result stream from success callback:

module.exports = result => {
    foo().then(resp => resp.stream.pipe(result.stream);
}

Invoking the callback immediately like below works just fine.

module.exports = result => {
    foo().pipe(result.stream);
}

Works fine locally, when deployed to azure we get TaskCancellationException.

Example project to reproduce https://github.com/ajtowf/nodeservices/
Live example with full stacktrace https://nodeservices.azurewebsites.net/

Am I missing something obvious here?

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