fix: prevent dev server crashing on malformed URI (fix #6300)#6308
fix: prevent dev server crashing on malformed URI (fix #6300)#6308patak-cat merged 3 commits intovitejs:mainfrom
Conversation
|
would it be better to first try with
|
|
I think that makes sense too. Like some sort of |
|
@bluwy @patak-dev what do you think is best fallback or showing error message? |
|
Looking back now, I think showing an error message may be safer, since having a fallback might imply that we support it, which we might not. So using @toSayNothing Re |
|
@bluwy 🤣i have debugged and found that : |
|
Nice observation @toSayNothing. That's an interesting behaviour from connect. It would sure be nice if it handles promises too, but for now this looks good to me. |



Description
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).when there is URIError, the dev server will crash because it didn't catch the error
reprodution : open url like http://localhost:3000/a%a