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

Closed
opened 2025-08-09 17:19:59 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ajtowf on 9/7/2016

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?

*Originally created by @ajtowf on 9/7/2016* 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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1398
No description provided.