futureporn-next server throws a 500 error when VOD URL has invalid or missing date #73

Closed
opened 2023-10-10 12:38:33 +00:00 by CJ_Clippy · 2 comments
Owner

Production example: https://futureporn.net/vt/projektmelody/vod/923848

Application error: a server-side exception has occurred (see the server logs for more information).

Digest: 337721351

Dev example: http://localhost:3000/vt/projektmelody/vod/923848

Unhandled Runtime Error

Error: Invalid time value
Source

app/lib/vods.ts (164:35) @ toISOString

  162 | 
  163 | export async function getVodForDate(date: Date): Promise<IVod|null> {
> 164 | const iso8601DateString = date.toISOString().split('T')[0];
      |                               ^
  165 | const query = qs.stringify(
  166 |     {
  167 |         filters: {


Production example: https://futureporn.net/vt/projektmelody/vod/923848 ``` Application error: a server-side exception has occurred (see the server logs for more information). Digest: 337721351 ``` Dev example: http://localhost:3000/vt/projektmelody/vod/923848 ``` Unhandled Runtime Error Error: Invalid time value Source app/lib/vods.ts (164:35) @ toISOString 162 | 163 | export async function getVodForDate(date: Date): Promise<IVod|null> { > 164 | const iso8601DateString = date.toISOString().split('T')[0]; | ^ 165 | const query = qs.stringify( 166 | { 167 | filters: { ```
CJ_Clippy added the
bug
label 2023-10-10 12:38:33 +00:00
Author
Owner

Considering this a show-stopper. Working on a fix today.

Considering this a show-stopper. Working on a fix today.
CJ_Clippy changed title from futureporn-next throws a 500 error when VOD URL has invalid or missing date to futureporn-next server throws a 500 error when VOD URL has invalid or missing date 2023-10-10 12:44:42 +00:00
Author
Owner

ok it's now handled with a 404 page

ok it's now handled with a 404 page
Sign in to join this conversation.
No description provided.