Skip to content

fix(core): properly recognize failed fetch responses when loading external resources in JIT#62992

Closed
devversion wants to merge 1 commit intoangular:mainfrom
devversion:external-resources-fetch
Closed

fix(core): properly recognize failed fetch responses when loading external resources in JIT#62992
devversion wants to merge 1 commit intoangular:mainfrom
devversion:external-resources-fetch

Conversation

@devversion
Copy link
Copy Markdown
Member

Currently when loading external resources in JIT, when fetch fails, the text is empty and the component is loading. This hides the actual underlying fetch error. We should properly detect this and error out.

@devversion devversion requested a review from crisbeto August 4, 2025 19:18
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Aug 4, 2025
@ngbot ngbot bot added this to the Backlog milestone Aug 4, 2025
…xternal resources in JIT

Currently when loading external resources in JIT, when `fetch` fails,
the `text` is empty and the component is loading. This hides the actual
underlying fetch error. We should properly detect this and error out.
Copy link
Copy Markdown
Contributor

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Reviewed-for: global-approvers

@devversion devversion added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Aug 4, 2025
@devversion
Copy link
Copy Markdown
Member Author

devversion commented Aug 5, 2025

Caretaker note: This has a passing TGP

@devversion devversion added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Aug 5, 2025
@crisbeto
Copy link
Copy Markdown
Member

crisbeto commented Aug 5, 2025

This PR was merged into the repository by commit 648bbb0.

The changes were merged into the following branches: main, 20.1.x

crisbeto pushed a commit that referenced this pull request Aug 5, 2025
…xternal resources in JIT (#62992)

Currently when loading external resources in JIT, when `fetch` fails,
the `text` is empty and the component is loading. This hides the actual
underlying fetch error. We should properly detect this and error out.

PR Close #62992
@crisbeto crisbeto closed this in 648bbb0 Aug 5, 2025
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime hotlist: google merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants