S
SolidJS2mo ago
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: }
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
2 Replies
Madaxen86
Madaxen862mo ago
Okay. I'm certain it's not buggy code. So it must be either deployment or lib versions. First thing I'd try is to update all dependencies. If the error persist we might have to look into deployment: - make sure all envs are set - check platform specific requirements for nitro config
odili
odiliOP2mo ago
Thank you, @Madaxen86 I will do as you have advised and monitor closely.

Did you find this page helpful?