我有一个在 codechecker.XX.de 运行的 codechecker Web (UI) 容器。 我已经使用 server-config.json 配置了用户 [例如:用户 XX:XX、用户名 XX、密码 XX]
我为 UI 创建了一个产品:
example-cpp
我想将我所做的一项分析的结果存储到用户界面上。 我尝试了以下方法:
CodeChecker cmd login XX
--->login successful
CodeChecker store /codechecker/results --name example --url http://codechecker.XX.de/example-cpp
回应:
[INFO 2024-05-07 13:41] - Storing analysis results for run 'example'
[INFO 2024-05-07 13:41] - Checking local passwords or tokens in /root/.codechecker.passwords.json
[WARNING 2024-05-07 13:41] - '/root/.codechecker.passwords.json' is readable by users other than you! This poses a risk of leaking sensitive information, such as passwords, session tokens, etc.!
Please 'chmod 0600 /root/.codechecker.passwords.json' so only you can access the file.
[INFO 2024-05-07 13:41] - Checking for local valid sessions.
[ERROR 2024-05-07 13:41] - Thrift invalid data error.
[ERROR 2024-05-07 13:41] - getAuthParameters
[ERROR 2024-05-07 13:41] - []
[ERROR 2024-05-07 13:41] - {}
[ERROR 2024-05-07 13:41] - Request failed.
Traceback (most recent call last):
File "/codechecker/lib/python3/codechecker_client/thrift_call.py", line 45, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/codechecker_api/Authentication_v6/codeCheckerAuthentication.py", line 162, in getAuthParameters
return self.recv_getAuthParameters()
File "/usr/local/lib/python3.9/site-packages/codechecker_api/Authentication_v6/codeCheckerAuthentication.py", line 173, in recv_getAuthParameters
(fname, mtype, rseqid) = iprot.readMessageBegin()
File "/usr/local/lib/python3.9/site-packages/thrift/protocol/TJSONProtocol.py", line 417, in readMessageBegin
self.readJSONArrayStart()
File "/usr/local/lib/python3.9/site-packages/thrift/protocol/TJSONProtocol.py", line 405, in readJSONArrayStart
self.readJSONSyntaxChar(LBRACKET)
File "/usr/local/lib/python3.9/site-packages/thrift/protocol/TJSONProtocol.py", line 255, in readJSONSyntaxChar
raise TProtocolException(TProtocolException.INVALID_DATA,
thrift.protocol.TProtocol.TProtocolException: Unexpected character: b'<'
有任何建议欢迎在此提出。
CodeChecker 开发人员在这里。我知道这是一个老问题,但如果有人来到这里,这可能会对他有所帮助。
在不查看堆栈配置的情况下,很难说出这里出了什么问题。从最后一行的错误中
Unexpected character: b'<'
我怀疑你的代理返回了一些HTTP错误代码,而不是正确的Codechecker thrift答案,并且CodeChecker客户端无法解析它。