I'm submitting a ... (check one with "x")
[x] bug report
[x] (or) feature request
Current behavior
When calling a rest local rest API for example /api/getproducts, the server Http throws a vague error
ERROR { Error: Uncaught (in promise): Error at resolvePromise
Providing the entire URL fixes it: (but user would never know to do this)
this.http.get('http://localhost:5000/API/test')
Expected behavior
Previously (angular2-universal) we set the origin-URL for the user in these situations, so if we don't want to add that same behavior,
we need to make sure to Throw a more specific error letting the Dev know why the server didn't render that Http response. (Note the rest of the app actually renders it doesn't break rendering).
Also Docs should reflect whatever we decide to do here as well, to prevent confusion.
Minimal reproduction of the problem with instructions
this.http.get('/API/test')
What is the motivation / use case for changing the behavior?
Previous Users of Universal might be confused why his existing functionality doesn't work anymore, especially if not given a good Error message explaining it.
- Angular version: 4.0.0.rc5 (or nightly build)
CC/ @vikerman @alxhub @gdi2290
I'm submitting a ... (check one with "x")
Current behavior
When calling a rest local rest API for example /api/getproducts, the server Http throws a vague error
Providing the entire URL fixes it: (but user would never know to do this)
Expected behavior
Previously (angular2-universal) we set the origin-URL for the user in these situations, so if we don't want to add that same behavior,
we need to make sure to Throw a more specific error letting the Dev know why the server didn't render that Http response. (Note the rest of the app actually renders it doesn't break rendering).
Also Docs should reflect whatever we decide to do here as well, to prevent confusion.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Previous Users of Universal might be confused why his existing functionality doesn't work anymore, especially if not given a good Error message explaining it.
CC/ @vikerman @alxhub @gdi2290