Hacker News new | ask | show | jobs
by semperdark 3079 days ago
Bug report: When I add an invalid link (Like "123") to the Links widget it sends a request to "publicApi/links" which hangs for a few minutes before failing.

It looks like you're requesting the URL server-side to provide a preview, you may want to validate the URL before making the request, or catch invalid requests.

2 comments

Also, just implement a give-up after 3-5 seconds. If a sever can't respond in that time, why bother (not worth the resources).
yikes .. this is what happens when you ship ship ship ! thanks for the report