Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When exception is thrown in resultSelector function of forkJoin error is not propagated to subscriber. #3216

Closed
m-s-sh opened this issue Jan 7, 2018 · 2 comments · Fixed by Xenira/Shashki#66
Labels
bug Confirmed bug

Comments

@m-s-sh
Copy link

m-s-sh commented Jan 7, 2018

When exception is thrown in resultSelector function of forkJoin error is not propagated to subscriber.
I am not sure if it is normal behaviour or a bug?

RxJS version:
5.5.6

Code to reproduce:

Observable.forkJoin(
    Observable.of(1),
    Observable.of(2),
    (i, buffer) => {
        throw new Error('error');
    }).catch((error) => {
        return Observable.of(3);
    }).subscribe(console.log,
    (error) => {
        console.log('error!');
    });

Expected behavior:
to catch the error and print : error!

Actual behavior:
node_modules/rxjs/Observable.js:165 throw sink.syncErrorValue;

Additional information:

@benlesh benlesh added the bug Confirmed bug label Jan 24, 2018
@benlesh
Copy link
Member

benlesh commented Jan 24, 2018

Confirmed. Thank you for reporting this @mihailstefanov

@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Confirmed bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants