SolidJSS
SolidJSโ€ข6mo agoโ€ข
2 replies
odili

_server in URL 500 Error logged

I got this error logged:

14-Jul-2025 02:57 +00:00: [request error] [unhandled] [GET] https://example.com/_server?id=src_routes_contact_tsx--contactAction_action&name=path-to-contact%2Fcontact.tsx%3Fpick%3Ddefault%26pick%3D%2524css%26tsr-directive-use-server%3D
14-Jul-2025 02:57 +00:00:  TypeError: Invalid URL
14-Jul-2025 02:57 +00:00:     at new URL (node:internal/url:818:25)
14-Jul-2025 02:57 +00:00:     ... 4 lines matching cause stack trace ...
14-Jul-2025 02:57 +00:00:     at async Server.toNodeHandle (file:///path-to-host/.output/server/chunks/nitro/nitro.mjs:2103:7) {
14-Jul-2025 02:57 +00:00:   cause: TypeError: Invalid URL
14-Jul-2025 02:57 +00:00:       at new URL (node:internal/url:818:25)
14-Jul-2025 02:57 +00:00:       at D$2 (file:///path-to-host/.output/server/chunks/nitro/nitro.mjs:7126:218)
14-Jul-2025 02:57 +00:00:       at Object.Xe$1 [as handler] (file:///path-to-host/.output/server/chunks/nitro/nitro.mjs:7119:16)
14-Jul-2025 02:57 +00:00:       at async file:///path-to-host/.output/server/chunks/nitro/nitro.mjs:1832:19
14-Jul-2025 02:57 +00:00:       at async Object.callAsync (file:///path-to-host/.output/server/chunks/nitro/nitro.mjs:4295:16)
14-Jul-2025 02:57 +00:00:       at async Server.toNodeHandle (file:///path-to-host/.output/server/chunks/nitro/nitro.mjs:2103:7) {
14-Jul-2025 02:57 +00:00:     code: 'ERR_INVALID_URL',
14-Jul-2025 02:57 +00:00:     input: 'null'
14-Jul-2025 02:57 +00:00:   },
14-Jul-2025 02:57 +00:00:   statusCode: 500,
14-Jul-2025 02:57 +00:00:   fatal: false,
14-Jul-2025 02:57 +00:00:   unhandled: true,
14-Jul-2025 02:57 +00:00:   statusMessage: undefined,
14-Jul-2025 02:57 +00:00:   data: undefined
14-Jul-2025 02:57 +00:00: }

Attached are the contact.tsx route file and Contact.tsx component
Was this page helpful?