该错误是什么意思:HPE_INVALID_CONSTANT? [英] What does this error mean: HPE_INVALID_CONSTANT?

查看:372
本文介绍了该错误是什么意思:HPE_INVALID_CONSTANT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前几天,我用NodeJS发出HTTP请求时收到HPE_INVALID_CONSTANT.他们神秘地停止了最近发生的事情,但是我仍然感到困惑和好奇,HPE_INVALID_CONSTANT到底想告诉我什么.

I was receiving HPE_INVALID_CONSTANT when making HTTP requests with NodeJS the other day. They mysteriously stopped occurring recently, but I'm still baffled and curious what exactly HPE_INVALID_CONSTANT is trying to tell me.

我的Google搜索结果有点偏向NodeJS,所以我没有选择任何更笼统地描述这意味着什么的东西.似乎是系统级错误,因为这全都是上限.

My google search results are a bit slanted towards NodeJS, so I'm not picking up anything that describes more generally what this means. It looks like a system level error since it's all caps.

推荐答案

认为此答案是迟来的,但可以对某些人有所帮助.

Think this answer is lated, but it can help some people.

我也遇到了这个问题,并意识到NodeJS不支持HTTP 0.9,该服务器的响应不包含标头.实际上,NodeJS文档中显示了对1.0和1.1 http请求的支持.

I also had this problem and realized NodeJS doesn't support HTTP 0.9, that server's response contains no headers. In fact, in NodeJS documentation shows support to 1.0 and 1.1 http requests.

您可以在本期此处阅读更多内容

You can read a little more here in this issue.

这篇关于该错误是什么意思:HPE_INVALID_CONSTANT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆