Local/Docker build crashes on startup when the blog fetch fails (ERR_TLS_CERT_ALTNAME_INVALID) — could the build degrade gracefully? #2200
pattang56892
started this conversation in
Ideas
Replies: 1 comment
|
Good catch @pattang56892 - no idea why that is still in there, I'll get this fixed later. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, and thanks for maintaining this — the remote-friendly companies list is genuinely useful.
I cloned the repo and tried to build/run it locally using the Docker setup that ships with the project, and the build crashes immediately, before any site is generated. I wanted to flag it and suggest a small robustness improvement.
What I did
What happened
The container exits with code 1 at the very start of the build. The relevant log:
Root cause as far as I can tell
Two things combine:
certificate which doesn't cover blog.remoteintech.company, so Node rejects the TLS handshake. (Looks like a custom-domain SSL provisioning issue on the WordPress.com side.)
So the build has a hard, un-cached dependency on a live external fetch, and any hiccup in that fetch is fatal.
Why I think it's worth improving
The real content of the site is the company-profiles/ data; the blog fetch only supplies decoration (theme CSS/header/footer). It feels fragile that a newcomer running the project through the very Docker setup the repo ships hits a hard crash because of an external
service's TLS state — and the error doesn't hint at what to do next.
Suggestions (rough priority order)
How I worked around it locally (for reference only)
Setting NODE_TLS_REJECT_UNAUTHORIZED=0 for the build lets the fetch through and the site builds fine. I mention it only to confirm the root cause — I'm not suggesting you adopt it, since it disables certificate validation process-wide.
Happy to test or open a PR for the graceful-fallback piece if that'd help. Thanks again!
All reactions