nxtrace / powserver

GNU General Public License v3.0
0 stars 0 forks source link

API Error: Wrong request_id #7

Closed AlotOfBlahaj closed 11 months ago

AlotOfBlahaj commented 1 year ago

你正在使用哪个版本的 nexttrace?

linux_amd64(wsl)

你看到的异常现象是什么?

[NextTrace API] prefered API IP - 45.88.195.154 - 381.22ms - Misaka.HKG
{"error":"Wrong request_id"}

RetToken failed 3 times, please try again after a while, exit

你期待看到的正常表现是怎样的?

正常输出 trace 结果

请附上你的命令

nexttrace 1.1.1.1

请附上出错时软件输出的错误信息

$ nexttrace 1.1.1.1
NextTrace v1.2.2.3 2023-10-12T11:34:32Z 9b2fc9b
[NextTrace API] prefered API IP - 45.88.195.154 - 381.22ms - Misaka.HKG
{"error":"Wrong request_id"}

RetToken failed 3 times, please try again after a while, exit

是否查询过本仓库wiki有没有类似错误

tsosunchia commented 1 year ago
if hashlib.sha256(raw_data.encode()).hexdigest() != request_id:
    return jsonify({'error': 'Wrong request_id'}), 400

此处异常是由这段代码引起,request_id在pow过程中可能受到了篡改