『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 552|回复: 2

[技术探讨] 求助:升级7.2后出现的错误

[复制链接]

10

主题

85

帖子

1138

积分

金牌会员

Rank: 6Rank: 6

积分
1138
金钱
1053
HASS币
0
发表于 2023-7-18 11:25:12 | 显示全部楼层 |阅读模式
本帖最后由 ssspp 于 2023-7-18 11:26 编辑

求助:升级7.2后出现的错误

请哪位大哥看看是哪里出错!

2023-07-18 00:25:35.713 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
2023-07-18 04:02:53.370 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
2023-07-18 04:12:29.515 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
2023-07-18 06:38:44.109 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message='Pause on PRI/Upgrade'
2023-07-18 07:01:23.982 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
2023-07-18 07:01:24.033 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
2023-07-18 09:52:40.996 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"

回复

使用道具 举报

3

主题

60

帖子

326

积分

中级会员

Rank: 3Rank: 3

积分
326
金钱
266
HASS币
0
发表于 2023-7-18 13:07:59 | 显示全部楼层
这些错误属于 aiohttp 库中的异常信息,它们指示在处理请求时出现了问题。以下是对每个错误的简要说明:

aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'" 这个错误表示请求的状态行无效,可能是由于请求方法不正确导致的。

aiohttp.http_exceptions.BadHttpMessage: 400, message='Pause on PRI/Upgrade' 这个错误表示收到了无效的 HTTP 消息,可能是由于出现了 "PRI" 或 "Upgrade" 字符串导致的。

这些错误通常是由于请求格式不正确或服务器无法正确解析请求而导致的。你可能需要检查发送的请求是否符合 HTTP 协议规范,并确保服务器能够正确处理和响应这些请求。

如果你遇到这些错误并且无法解决,可能需要进一步检查请求的内容、服务器的配置或其他相关因素。如果你有更多详细的上下文信息或相关的代码,我可以尝试提供更具体的帮助。   用chat翻译了一下,应该不是什么大的问题
回复

使用道具 举报

1

主题

31

帖子

315

积分

中级会员

Rank: 3Rank: 3

积分
315
金钱
284
HASS币
0
发表于 2023-7-18 15:54:02 | 显示全部楼层
你用什么方式安装的?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-14 06:19 , Processed in 0.099155 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表