Server throws error when visiting non-existent /vt/:slug #77

Closed
opened 2023-10-11 01:34:37 +00:00 by CJ_Clippy · 2 comments
Owner
2023-10-10T22:29:03.834600683Z app[web.1]: while unmarshalling vtuber, d.attributes in the following d was false.
2023-10-10T22:29:03.835663620Z app[web.1]: undefined
2023-10-10T22:29:03.836535848Z app[web.1]: panick! unmarshallVTuber was called with undefined data
2023-10-10T22:29:03.837098632Z app[web.1]: Trace
2023-10-10T22:29:03.837109373Z app[web.1]:     at n (/app/.next/server/chunks/4756.js:1:5496)
2023-10-10T22:29:03.837113791Z app[web.1]:     at /app/.next/server/chunks/4756.js:1:6437
2023-10-10T22:29:03.837118009Z app[web.1]:     at async I (/app/.next/server/app/vt/[slug]/page.js:1:4143)
2023-10-10T22:29:03.840635982Z app[web.1]: TypeError: Cannot read properties of undefined (reading 'id')
2023-10-10T22:29:03.840660269Z app[web.1]:     at n (/app/.next/server/chunks/4756.js:1:5511)
2023-10-10T22:29:03.840663945Z app[web.1]:     at /app/.next/server/chunks/4756.js:1:6437
2023-10-10T22:29:03.840666430Z app[web.1]:     at async I (/app/.next/server/app/vt/[slug]/page.js:1:4143)
2023-10-10T22:29:03.842570186Z app[web.1]: [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
2023-10-10T22:29:03.842585856Z app[web.1]:   digest: '2297615002'
2023-10-10T22:29:03.842589714Z app[web.1]: }
``` 2023-10-10T22:29:03.834600683Z app[web.1]: while unmarshalling vtuber, d.attributes in the following d was false. 2023-10-10T22:29:03.835663620Z app[web.1]: undefined 2023-10-10T22:29:03.836535848Z app[web.1]: panick! unmarshallVTuber was called with undefined data 2023-10-10T22:29:03.837098632Z app[web.1]: Trace 2023-10-10T22:29:03.837109373Z app[web.1]: at n (/app/.next/server/chunks/4756.js:1:5496) 2023-10-10T22:29:03.837113791Z app[web.1]: at /app/.next/server/chunks/4756.js:1:6437 2023-10-10T22:29:03.837118009Z app[web.1]: at async I (/app/.next/server/app/vt/[slug]/page.js:1:4143) 2023-10-10T22:29:03.840635982Z app[web.1]: TypeError: Cannot read properties of undefined (reading 'id') 2023-10-10T22:29:03.840660269Z app[web.1]: at n (/app/.next/server/chunks/4756.js:1:5511) 2023-10-10T22:29:03.840663945Z app[web.1]: at /app/.next/server/chunks/4756.js:1:6437 2023-10-10T22:29:03.840666430Z app[web.1]: at async I (/app/.next/server/app/vt/[slug]/page.js:1:4143) 2023-10-10T22:29:03.842570186Z app[web.1]: [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] { 2023-10-10T22:29:03.842585856Z app[web.1]: digest: '2297615002' 2023-10-10T22:29:03.842589714Z app[web.1]: } ```
CJ_Clippy added the
bug
label 2023-10-11 01:34:37 +00:00
Author
Owner

This can occur when visiting a /vt/* link that doesn't exist. example: https://futureporn.net/vt/el_xox

not a show stopper, as the server handles it without crashing. But definitely something that needs a 404 and a perhaps a recommended path

This can occur when visiting a /vt/* link that doesn't exist. example: https://futureporn.net/vt/el_xox not a show stopper, as the server handles it without crashing. But definitely something that needs a 404 and a perhaps a recommended path
CJ_Clippy changed title from error while unmarshalling vtuber to Server throws error when visiting non-existent /vt/:slug 2023-10-11 02:22:59 +00:00
Author
Owner

404 implemented

404 implemented
Sign in to join this conversation.
No description provided.