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

Timeouts running Frontend + DCR locally #27654

Open
cemms1 opened this issue Dec 5, 2024 · 0 comments
Open

Timeouts running Frontend + DCR locally #27654

cemms1 opened this issue Dec 5, 2024 · 0 comments

Comments

@cemms1
Copy link
Contributor

cemms1 commented Dec 5, 2024

Problem summary

When running the combination of frontend (on port 9000) and dotcom-rendering (on port 3030) together locally, it times out very frequently.

This happens most frequently when accessing PROD front paths like uk (http://localhost:9000/uk) via the dev-build Scala project
It also happens when running the facia Scala project directly, though I think this can improve the chances of getting a page to render this way.

Image

It doesn't seem to time out when requesting PROD article paths like uk-news/2024/dec/05/uk-weather-storm-darragh-to-bring-80mph-gusts-as-amber-wind-warning-issued

I have tried increasing the timeout on the rendering configuration:

lazy val timeout = 2.seconds

which can help but not always, and does slow down the feedback loop when developing

Workarounds

I sometimes use this workaround when needing to run DCR and frontend locally.

Tip

By using DCR as the base URL and adding the frontend URL into the path, it doesn't time out http://localhost:3030/Front/http://localhost:9000/uk

The other alternative is to deploy to CODE, but this also takes time and delays developer feedback.

@cemms1 cemms1 changed the title Frontend + DCR dev experience: timeouts Timeouts running Frontend + DCR locally Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant