SaltWood-Studio / Open93AtHome

Mozilla Public License 2.0
7 stars 2 forks source link

[Bug] Python端无法正常获取到token的值 #1

Closed Dongyanmio closed 4 months ago

Dongyanmio commented 4 months ago

连接93的服务器可以正常上线

连接93@home就会在获取token时卡住

[2024-07-15 16:14:02] [INFO] [core.cluster:fetch:43]: 正在获取 token……

SALTWOOD commented 4 months ago

似乎修不了(?

SALTWOOD commented 4 months ago

我去问问2b2t

tianxiu2b2t commented 4 months ago

提供一下日志啊哥

tianxiu2b2t commented 4 months ago

@SALTWOOD image 您的Content-Type丢哪了???

<CIMultiDictProxy('Server': 'nginx/1.24.0 (Ubuntu)', 'Date': 'Mon, 15 Jul 2024 14:55:18 GMT', 'Content-Length': '387', 'Connection': 'keep-alive')> Traceback (most recent call last): File "D:\Desktop_\openbmclapi\core\cluster.py", line 65, in fetch json = await resp.json() ^^^^^^^^^^^^^^^^^ File "c:\Users\2b2ttianxiu\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\client_reqrep.py", line 1105, in json raise ContentTypeError( aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('http://saltwood.top:9393/openbmclapi-agent/token')

SALTWOOD commented 4 months ago

修了