Only access instance.getURL if the instance has booted#71
Merged
danmcclain merged 1 commit intoember-fastboot:masterfrom Jul 14, 2016
Merged
Only access instance.getURL if the instance has booted#71danmcclain merged 1 commit intoember-fastboot:masterfrom
danmcclain merged 1 commit intoember-fastboot:masterfrom
Conversation
968180c to
2784a71
Compare
Member
|
This seems good to me, but I agree that we should probably also make some changes upstream in Ember around this too. |
Contributor
f6a7746 to
8a41177
Compare
Contributor
Author
|
@rwjblue okay, should be fine and ready to merge when you're ready. I'll also start on fixing the upstream bug in Ember. |
|
@jasonmit - did you ever get a chance to work on the upstream bug in Ember? I'm starting to see this in an acceptance test. Let me know if I can help too 😄 |
|
I just got this error. In my case, the problem was not in an initializer, but a bad route definition. The way I figured this out was to start ember server without fastboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Accessing it if the instance failed to boot causes Ember's router to try and access
location.getURLwhenlocationis a string ("none") instead the expectedEmber.NoneLocationinstance.This is leading to all uncaught errors that occur during the app boot to be masked/swallowed.
ember-fastboot/ember-cli-fastboot#223
I can send a fix into Ember to not invoke
getURLwhen the location object was not created.