RobertBoes / sidecar-inertia-vite

A Sidecar function to run Inertia server-side rendering with Vite on Lambda.
MIT License
17 stars 7 forks source link

Error: Invalid URL. [TRACE] TypeError [ERR_INVALID_URL] #4

Open jbardnz opened 1 year ago

jbardnz commented 1 year ago

Hey,

I'm getting the below error after deploying my sidecar function and trying to load my page:

Lambda Execution Exception for RobertBoes\SidecarInertiaVite\SSRFunction: "Invalid URL. [TRACE] TypeError [ERR_INVALID_URL]: Invalid URL at new NodeError (node:internal/errors:387:5) at URL.onParseError (node:internal/url:565:9)".

The error is a bit cryptic, any idea where I should be looking?

If it helps I am using Ziggy, not sure if that is relevant.

RobertBoes commented 1 year ago

@jbardnz Seems like an error that's caused by your script, as it's a Node error and this package is just an implementation for hammerstone/sidecar which packages your SSR code and executes it on Lambda