Skip to content
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

Angular 17.1.2 ssr with firebase experiments:enable webframeworks: server respond with "Service Unavailable" or "Internal Server Error" when asking requesting any route instead of root #6847

Closed
pdela opened this issue Mar 7, 2024 · 1 comment

Comments

@pdela
Copy link

pdela commented Mar 7, 2024

[REQUIRED] Environment info

firebase-tools: 13.4.0

Platform: Windows

[REQUIRED] Test case

Navigate to: https://test-scb-website.web.app (working)
Or https://test-scb-website.web.app/home (not working)

[REQUIRED] Steps to reproduce

Firebase.json hosting configuration used:
{
"target": "test-web-target",
"source": ".",
"frameworksBackend": {
"region": "europe-west1"
}
}

[REQUIRED] Expected behavior

The serve respond with the route requested

[REQUIRED] Actual behavior

The server respond correctly only when navigating to the site root (https://test-scb-website.web.app), while it returns "Service unavailable" or "Internal Server Error" when requesting any sub route (https://test-scb-website.web.app/home or anything else).

@pdela
Copy link
Author

pdela commented Mar 7, 2024

### SOLVED

I solved commenting the run() function call inside server.ts, as per this suggestion: #6505 (comment)

In facts, before I was seeing Error: listen EADDRINUSE: address already in use :::8080 in the ssr cloud function log.

Now it works with any route.

@pdela pdela closed this as completed Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants