#Astro SSL with hybrid/prerender/404 not working

28 messages · Page 1 of 1 (latest)

past depot
#

minimal repro: https://github.com/lifeisfakenews/astro-ssl-bug-of-annoyingess
to reproduce, clone the repo to somewhere you can access it it over https e.g. codespaces, build and run the project (no dev mode) and visit any page triggering the 404.astro page. This page will return fine if prerender = false is exported but if not it wont return a page and the following error:

TypeError: fetch failed
    at node:internal/deps/undici/undici:12345:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async #renderError (file:///workspaces/astro-ssl-bug-of-annoyingess/dist/server/entry.mjs:881:27)
    at async file:///workspaces/astro-ssl-bug-of-annoyingess/dist/server/entry.mjs:1127:26 {
  cause: [Error: 00885EF8AF7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
  ] {
    library: 'SSL routines',
    reason: 'wrong version number',
    code: 'ERR_SSL_WRONG_VERSION_NUMBER'
  }
}

The other page / works fine with or without prerender so i am lead to believe its an issue with specifically 404 pages

more details are in the repo README

GitHub

Contribute to lifeisfakenews/astro-ssl-bug-of-annoyingess development by creating an account on GitHub.

past depot
#

this is still being a roght pain for my site

it would be great if someone saw this but im not gonna pijg ppl cause im not that guy

past depot
#

annnnnnnnnnyyyyyyyyyyyyooooooooooneeeeeee heeeeeeeeeeeeeeeeeeere?

teal isle
#

What does this have to do with Astro?

#

SSL errors are caused by hosting issues

#

Not through Astro directly, Astro doesn't know what SSL etc is

#

What adapter are you using

past depot
past depot
#

never had it happen on sites without astro, nor on sites with static/server output

hybrid rune
#

Is that 404 you are trying to reach a URL that doesn't match any route or is it a URL that matches a dynamic route and in the route you return 404?

past depot
#

its just a 404.astro file

#

no dynamic route

hybrid rune
#

Seems like a bug in the Node adapter

past depot
#

ic

#

will it be simple to fix

#

do you think

wind flameBOT
hybrid rune
past depot
#

alr

past depot
hybrid rune
#

Yeah, with your reproduction repo

past depot
#

al

#

r

past depot
cerulean oasis
past depot
#

yay

#

thx for fixing it