JoosepAlviste/serieslist

404 when viewing series that hasn't been synced in a while

JoosepAlviste opened this issue · 1 comments

I'm not exactly sure how to reproduce this, it's a rather rare issue.

  1. Have a series
  2. Synced more than X days ago (probably the sync frequency)
  3. View the details
  4. Get 404

I think that this is because the SSR makes TWO requests at the same time to fetch the series details. One in onBeforeRender in features/series/pages/@id.page.server.ts and the second one in the component. The first request triggers re-fetching the data and the second one fails because only some data is available (I think?).

Needs some debugging and a way to reliably reproduce this error.

E: It looks like we might not be making 2 requests anymore, maybe this was fixed in the Vike upgrade?

Haven't run into this in a while, so it looks like it got fixed somehow 🥳