next-react-server-components icon indicating copy to clipboard operation
next-react-server-components copied to clipboard

The SSR + Api delay example is broken

Open ReangeloJ opened this issue 4 years ago • 4 comments

Hey The ssr + api delay example is broken. I get an error 500 on: https://next-news-rsc.vercel.sh/ssr

Thanks in advance! :)

image

ReangeloJ avatar Oct 28 '21 08:10 ReangeloJ

Seems to be fixed (at least for me).

benbender avatar Oct 28 '21 10:10 benbender

Seems to be fixed (at least for me).

Okay, that is strange yeah, mine still gives the error. All the others work except for that one

ReangeloJ avatar Oct 28 '21 12:10 ReangeloJ

Same problem for me as well.

Screen Shot 2021-10-28 at 7 38 58 PM

frencojobs avatar Oct 28 '21 13:10 frencojobs

Vercel's specification seems to cause an error if the SSR process exceeds 1.5 seconds. As a workaround, I created a hybrid SSR-Streaming process.

https://next-streaming.vercel.app/ https://github.com/SoraKumo001/next-streaming

It performs static SSR within the limit of 1.4 seconds, and switches to SSR-Streaming when it times out.

SoraKumo001 avatar Jan 04 '22 08:01 SoraKumo001

This should be resolved, but please let me know if you see it not working 😄

leerob avatar Nov 13 '22 17:11 leerob