The server has no method of dealing with global exceptions.

未关闭
#665 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
领域
backend

调研方向

首先检查服务器现有的异常处理,以及相关的 issue #634 和 #502。完成标准是:未捕获的错误会被记录,并且服务器会继续运行而不是崩溃,包括在报告中提到的 Node.js 和 Windows 环境中。

由索引模型根据 Issue 内容生成。

描述

stale

Steps to reproduce the issue, if applicable. Include the actual command and output and/or stack trace.

What did you expect to happen?
I expected that when an error happens, the server didn't crash. Yet it should log the exception and continue. Crashing makes the server vulnerable if it's used for production.

If the issue is a feature request, what is the motivation / use case for it?

Tell us about your environment

  • exact http-server version: Latest
  • Node version: 12.6.0
  • Platform: Windows 10 Home

Other information (related issues, suggestions for a fix, etc):
#634 #502

主要语言
JavaScript
星标
14.2k
派生
1.6k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

http-party/http-server 的其他 Issue

查看 http-party/http-server 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。