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

sidecar swallows errors #309

Closed
JeroenVinke opened this issue Jan 31, 2016 · 9 comments
Closed

sidecar swallows errors #309

JeroenVinke opened this issue Jan 31, 2016 · 9 comments

Comments

@JeroenVinke
Copy link
Member

Like @Thanood suggested, sidecar is the cause of some errors being swalled in the sample app.

@adriatic
Copy link
Member

How is this conclusion verified?

@JeroenVinke
Copy link
Member Author

I forgot to declare a variable in our generateBindables decorator, and I didn't get an error. After disabling sidecar the error became visible, and after enabling sidecar the error disappeared again.

@adriatic
Copy link
Member

This means a bug in browser-sync or higher up from there - as having an app running in iframe should not cause such effects.

Conclusion: get rid of side-car - the sooner, the better. Otherwise we could have a nightmare tracing down bugs reported by bridge users.

@JeroenVinke
Copy link
Member Author

Actually, this bug is only swallowing errors in our sample app, the plugin users should be fine. I only created this issue so that it can be investigated further, so I still have hope

@adriatic
Copy link
Member

Actually, this bug is only swallowing errors in our sample app

I believe that you knew that I know that, right :-)

@Thanood
Copy link
Contributor

Thanood commented Feb 2, 2016

Just thinking..

These are all unresolved promise rejections, right? Bluebird has a feature which can catch these globally (at least they say so). I'm not sure but sidecar may use bluebird. Their master branch has bluebird commented but what if the dist version still has it in?

There certainly is a part of sidecar which doesn't run in an iframe. That is at least the part which creates that iframe and attaches it onto a container element. Now if that part happens to catch promise rejections...

@JeroenVinke
Copy link
Member Author

Hmm, in the Gitter sidecar source code I see they use es6-promise.

which has an issue with not throwing unhandled exceptions

stefanpenner/es6-promise#70

@Thanood
Copy link
Contributor

Thanood commented Feb 2, 2016

You're right.. I had too many "if"s in my thoughts anyway. Bluebird being commented doesn't necessarily mean anything.

There are a lot of "swallowing" issues mentioned in the issue you linked.

@JeroenVinke
Copy link
Member Author

removed gitter sidecar in 9f80976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants