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

fix: handle getaddrinfo errors when checking dev server #39

Merged
merged 1 commit into from
Mar 19, 2021
Merged

fix: handle getaddrinfo errors when checking dev server #39

merged 1 commit into from
Mar 19, 2021

Conversation

palkan
Copy link
Contributor

@palkan palkan commented Mar 19, 2021

Description 📖

Fixes #dev_server_running? failing with an exception in case hostname is not resolveable.

Background 📜

That's, for example, the case when using a dockerized development environment (and not running a vite-dev server at all).

The Fix 🔨

I suggest removing the exception class filter altogether like Webpacker does.

Screenshots 📷

image

Fixes #dev_server_running? failing with an exception in case hostname is not resolveable.

That's, for example, the case when using a dockerized development environment (and not running a vite-dev server at all).
@ElMassimo
Copy link
Owner

Usually a dockerized setup would also start the Vite dev server, but I don't see a reason to be strict about the check.

Thanks for the fix!

@ElMassimo ElMassimo merged commit df57d6b into ElMassimo:main Mar 19, 2021
@palkan palkan deleted the patch-2 branch March 19, 2021 18:02
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

Successfully merging this pull request may close these issues.

2 participants