René's URL Explorer Experiment


Title: Angular 16 SSR not retrieving data from http request · Issue #50562 · angular/angular · GitHub

Open Graph Title: Angular 16 SSR not retrieving data from http request · Issue #50562 · angular/angular

X Title: Angular 16 SSR not retrieving data from http request · Issue #50562 · angular/angular

Description: 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? Yes, the previous version in which this bug was not present was: angular 15.2.0 this repo shows that it was working in a15: https:/...

Open Graph Description: 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? Yes, the previous version in which this bug was not present was: angular 15.2.0 this repo s...

X Description: 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? Yes, the previous version in which this bug was not present was: angular 15.2.0 this repo s...

Opengraph URL: https://github.com/angular/angular/issues/50562

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular 16 SSR not retrieving data from http request","articleBody":"# 🐞 Bug report\r\n\r\n#### What modules are related to this issue?\r\n\r\n- [ ] builders\r\n- [ ] common\r\n- [X] express-engine\r\n\r\n### Is this a regression?\r\n\r\nYes, the previous version in which this bug was not present was: angular 15.2.0\r\nthis repo shows that it was working in a15: https://github.com/echotech11/ssr-problem-15\r\n\r\n### Description\r\n\r\nIn a new angular 16 app I have found that SSR will not retrieve data in any component other than the app component.\r\n\r\n## 🔬 Minimal Reproduction\r\nI have provided a minimum repo to show the issue. I generated this project with ```ng new``` then added ssr ```ng add @nguniversal/express-engine``` and added the needed code to reproduce the issue.\r\nhttps://github.com/echotech11/ssr-problem\r\nsteps to reproduce:\r\n1. ```git clone https://github.com/echotech11/ssr-problem```\r\n2. ```npm ci```\r\n3. ```npm run dev:ssr```\r\n4. navigate to http://localhost:4200\r\n5. CTRL+U in browser will show SSR retrieved the data.\r\n6. Comment out line 3 in app.component.html\r\n7. navigate to http://localhost:4200/test\r\n8. CTRL+U in browser will show SSR did not retrieve the data.\r\n\r\n\r\nI have also made the same repo in angular 15 where SSR is working correctly using basically the same code.\r\nhttps://github.com/echotech11/ssr-problem-15\r\n\r\n## 🔥 Exception or Error\r\nNo errors\r\n\r\n## 🌍 Your Environment\r\n\r\n\u003cpre>\u003ccode>\r\n     _                      _                 ____ _     ___ \r\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\r\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | | \r\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | | \r\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\r\n                |___/\r\n    \r\n\r\nAngular CLI: 16.0.4\r\nNode: 18.16.0\r\nPackage Manager: npm 9.5.1\r\nOS: win32 x64\r\n\r\nAngular: 16.0.4\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, platform-server\r\n... router\r\n\r\nPackage                         Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect       0.1600.4\r\n@angular-devkit/build-angular   16.0.4\r\n@angular-devkit/core            16.0.4\r\n@angular-devkit/schematics      16.0.4\r\n@nguniversal/builders           16.0.2\r\n@nguniversal/express-engine     16.0.2\r\n@schematics/angular             16.0.4\r\nrxjs                            7.8.1\r\ntypescript                      5.0.4\r\n\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/echotech11","@type":"Person","name":"echotech11"},"datePublished":"2023-06-02T15:51:59Z","url":"https://github.com/angular/angular/issues/50562"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ea6d5d9d-71c0-035c-48a2-b02104e42351
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9184:31E99C:177D8B3:1F58593:6B014370
html-safe-nonceb85daac3c5f42578eca1447adf9ae64a84b5524979242fa5d634de61a16b45f4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTg0OjMxRTk5QzoxNzdEOEIzOjFGNTg1OTM6NkIwMTQzNzAiLCJ2aXNpdG9yX2lkIjoiMzk2MDI4MDYxNDA0NDc3OTM3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac77da69c716296bc5fee20e4ffe6af05baf01457313b1b615a950609d1e2cad6d
hovercard-subject-tagissue:1739265773
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/50562/issue_layout
twitter:imagehttps://opengraph.githubassets.com/729b22098e3a545bdc50744fec9b3ec12ab5115bf16cf0f7ed85e3efdd878ead/angular/angular/issues/50562
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/729b22098e3a545bdc50744fec9b3ec12ab5115bf16cf0f7ed85e3efdd878ead/angular/angular/issues/50562
og:image:alt🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? Yes, the previous version in which this bug was not present was: angular 15.2.0 this repo s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameechotech11
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/50562#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F50562
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F50562
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/50562
Reloadhttps://github.com/angular/angular/issues/50562
Reloadhttps://github.com/angular/angular/issues/50562
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues836 (836)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/50562
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/50562
Angular 16 SSR not retrieving data from http requesthttps://github.com/angular/angular/issues/50562#top
https://github.com/alan-agius4
area: serverIssues related to server-side renderinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20server%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/echotech11
echotech11https://github.com/echotech11
on Jun 2, 2023https://github.com/angular/angular/issues/50562#issue-1739265773
https://github.com/echotech11/ssr-problem-15https://github.com/echotech11/ssr-problem-15
https://github.com/echotech11/ssr-problemhttps://github.com/echotech11/ssr-problem
http://localhost:4200http://localhost:4200
http://localhost:4200/testhttp://localhost:4200/test
https://github.com/echotech11/ssr-problem-15https://github.com/echotech11/ssr-problem-15
alan-agius4https://github.com/alan-agius4
on Jun 3, 2023https://github.com/angular/angular/issues/50562#event-9420346008
alan-agius4https://github.com/alan-agius4
angular/universalhttps://github.com/angular/universal
on Jun 3, 2023https://github.com/angular/angular/issues/50562#event-9420346010
alan-agius4https://github.com/alan-agius4
area: serverIssues related to server-side renderinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20server%22
on Jun 3, 2023https://github.com/angular/angular/issues/50562#event-9420346303
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jun 3, 2023https://github.com/angular/angular/issues/50562#event-9420346401
alan-agius4https://github.com/alan-agius4
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
on Jun 3, 2023https://github.com/angular/angular/issues/50562#event-9420346530
alxhubhttps://github.com/alxhub
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
edceb48https://github.com/angular/angular/commit/edceb486dd09c2d7335a149c6384e78479ab93b0
on Jun 6, 2023https://github.com/angular/angular/issues/50562#event-9450926137
alxhubhttps://github.com/alxhub
on Jun 6, 2023https://github.com/angular/angular/issues/50562#event-9450926348
fix(core): wait for HTTP in `ngOnInit` correctly before server render (…https://github.com/angular/angular/commit/c992109d6c385a2b471f08eaa56701dfd513f219
…https://github.com/angular/angular/pull/50573
https://docs.github.com/articles/closing-issues-via-commit-messages
c992109https://github.com/angular/angular/commit/c992109d6c385a2b471f08eaa56701dfd513f219
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jul 7, 2023https://github.com/angular/angular/issues/50562#issuecomment-1624458564
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jul 7, 2023https://github.com/angular/angular/issues/50562#event-9749238598
ChellappanRajanhttps://github.com/ChellappanRajan
on Jan 23, 2024https://github.com/angular/angular/issues/50562#event-11564090628
fix(core): wait for HTTP in `ngOnInit` correctly before server render (…https://github.com/ChellappanRajan/angular/commit/d22ea0411cd56cc91c5037484fa940ed16a616ea
…https://github.com/angular/angular/pull/50573
https://docs.github.com/articles/closing-issues-via-commit-messages
d22ea04https://github.com/ChellappanRajan/angular/commit/d22ea0411cd56cc91c5037484fa940ed16a616ea
thePunderWomanhttps://github.com/thePunderWoman
on Jun 6, 2024https://github.com/angular/angular/issues/50562#event-13069681799
fix(core): wait for HTTP in `ngOnInit` correctly before server render (…https://github.com/zachary-svoboda-accesso/angular/commit/edceb486dd09c2d7335a149c6384e78479ab93b0
…https://github.com/angular/angular/pull/50573
https://docs.github.com/articles/closing-issues-via-commit-messages
edceb48https://github.com/zachary-svoboda-accesso/angular/commit/edceb486dd09c2d7335a149c6384e78479ab93b0
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/50562
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/50562
alan-agius4https://github.com/alan-agius4
area: serverIssues related to server-side renderinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20server%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.