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

"Start App" starts disconnected #196

Open
jacobparis opened this issue Mar 8, 2024 · 1 comment
Open

"Start App" starts disconnected #196

jacobparis opened this issue Mar 8, 2024 · 1 comment

Comments

@jacobparis
Copy link

When starting a new app, it initially starts in a "localhost refused to connect" state but works once refreshed

Screen.Recording.2024-03-09.at.1.35.57.AM.mov
@kentcdodds
Copy link
Member

I'm not certain what's causing this and I cannot reproduce it with the example in this repo I'm afraid.

One thing that may be an issue is how we detect whether the app is ready. We hit it with HEAD requests and as soon as it sends back a 200 OK, then we assume it's ready for traffic. Perhaps you could check this by modifying waitOnApp in node_modules/@epic-web/workshop-utils/dist/esm/process-manager.server.js to use GET instead. If that fixes it then see whether there's something we can do to handle the HEAD request better or maybe we'll just change it to GET.

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

2 participants