-
Notifications
You must be signed in to change notification settings - Fork 12k
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
build: unhandled exception error during prerender #29884
Labels
angular/build:application
area: @angular/build
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Comments
additional info: API url was starting with |
Are you using |
yes this is the related code, it also uses tanstack query: countriesQuery = injectQuery(() => ({
queryKey: ['countryList'],
queryFn: () => {
return lastValueFrom(this.#profileService.getCountryList());
},
})); |
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Mar 20, 2025
Prior to this change, request errors were not handled correctly. Closes angular#29884
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Mar 20, 2025
Prior to this change, request errors were not handled correctly. Closes angular#29884
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Mar 20, 2025
Prior to this change, request errors were not handled correctly. Closes angular#29884
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Mar 20, 2025
Prior to this change, request errors were not handled correctly. Closes angular#29884
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
angular/build:application
area: @angular/build
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
build
Is this a regression?
The previous version in which this bug was not present was
No response
Description
if route fails to prerender due to invalid http url during prerender, it gives following error, so we cannot find route having the error.
Minimal Reproduction
add route with
RenderMode.Prerender
in new app, & call api with invalid http url in that component.(not adding app as bug is clear in existing code, see anything else section)
Exception or Error
Your Environment
Anything else relevant?
See following code:
angular-cli/packages/angular/build/src/utils/server-rendering/prerender.ts
Lines 259 to 262 in c0de723
in this code if err obj is
undefined
it won't log exact error, & error is actually undefined in this case.The text was updated successfully, but these errors were encountered: