run icon indicating copy to clipboard operation
run copied to clipboard

Invalid paths cause the response to hang

Open AngusMorton opened this issue 11 months ago • 0 comments

We're seeing people hit our Marko Run service with the path // which causes the request to hang until it times out.

Specifically, I think it's throwing here because new URL("//", http://www.example.com") throws.

Potentially, a fix is to use URL.parse and handle a missing URL in the fetch handler by falling back to a 500 page.

AngusMorton avatar Feb 28 '25 01:02 AngusMorton