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

BigTest has a proxy error with gatsby #957

Open
jbolda opened this issue Jul 30, 2021 · 2 comments
Open

BigTest has a proxy error with gatsby #957

jbolda opened this issue Jul 30, 2021 · 2 comments

Comments

@jbolda
Copy link
Contributor

jbolda commented Jul 30, 2021

It appears that Gatsby (run through netlify dev) starts up slowly enough and maybe doesn't provide the correct signals that it is ready, and BigTest times out the connection with a proxy error. See this clip from stream.

Proxy error: Error: connect ECONNREFUSED 127.0.0.1:3000
@cowboyd
Copy link
Member

cowboyd commented Jul 31, 2021

As you can see, the app server inside bigtest itself will just keep looping until it receives a response.ok

https://github.com/thefrontside/bigtest/blob/effection-v2/packages/server/src/app-server.ts#L36-L56

You can increase the amount of time that it will wait from the bigtest ci

If netlify is returning response.ok when in fact, it is not ok, then we might have to add an extension point where you can insert custom code into the health check to determine if the response is "actually ok"

GitHub
Ensure your React/Vue/Ember/anything app works perfectly across browsers. - bigtest/app-server.ts at effection-v2 · thefrontside/bigtest

@jbolda
Copy link
Contributor Author

jbolda commented Aug 2, 2021

Ah yea, that makes sense. I was looking at the CLI options too and didn't think to look into that. I guess I assumed it was just waiting until it started.

Notes for checking if this is the issue / documenting it:

GitHub
Ensure your React/Vue/Ember/anything app works perfectly across browsers. - bigtest/cli.ts at effection-v2 · thefrontside/bigtest

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