-
Notifications
You must be signed in to change notification settings - Fork 69
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
Deprecate resilient mode #215
Comments
I'm in favor of deprecating.... We should lay out a plan for the deprecation and ultimate removal... |
Quick RFC? ;) |
@locks - seems fine either way, happy to review / provide feedback if you do want to write one |
My company needs resilient mode to be available. Shouldn't this issue be more about defaulting
So the mystery is: what exactly is trolling developers? |
A bit more information: I have no idea how to reproduce an "adapter aborted" error locally, so this has been tough to debug. However, I believe that |
And even more information: |
@sdhull - I still don't fully grok what you need here. Is it that you don't want your express app crashing when there is an error? |
Well we're using These comments were from my mission to get resilient mode working for us in production. ...
resilient: true,
afterMiddleware(app) {
app.use((_err, _req, res, next) => {
// this is what makes resilient mode actually work :mindblown:
next();
});
}, |
Oh and it was also to point out that if something is "trolling consumers" as OP mentions, it's not resilient mode, because it's actually impossible to turn resilient mode on. 🤔 |
Gotcha! Thank you for clarifying! @sdhull - The specific thing that you wanted to do should have been extremely easy, but was not. That is what we want to fix, and
My proposal here is to:
|
Totally agree. @rwjblue you're basically suggesting we rename I think this issue was opened by @kratiahuja to address something entirely different though, which is that sometimes when developing locally using ember-cli-fastboot, errors occur in the fastboot process which are basically invisible in the browser. I'm not sure how to repro this but I feel like I've seen it myself. However I suspect it's not related to @kratiahuja do you have a way to repro what you're talking about? |
Fastboot supports a
resilient
mode that allows one to swallow errors and not reject the promise if there are rendering errors. Often this can troll the consumers where they expect some output from fastboot but there was none and no error to indicate what is wrong. This issue is to open discussion whether we should deprecateresilient
mode in future.Alternatively, if we don't want to drop the support, we should atleast add warning when the promise is rejected that fastboot and return the error object as part of promise resolution. This will help consumers understand in more detail.
The text was updated successfully, but these errors were encountered: