cat icon indicating copy to clipboard operation
cat copied to clipboard

python 客户端启动链接服务端报错

Open czs397001 opened this issue 1 year ago • 2 comments

  • Got available server list:
HTTP Status 400 – Bad Request

HTTP Status 400 – Bad Request


Type Exception Report

Message The HTTP header line [host 10.160.4.29] does not conform to RFC 7230. The request has been rejected.

Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

Exception

java.lang.IllegalArgumentException: The HTTP header line [host 10.160.4.29] does not conform to RFC 7230. The request has been rejected.
org.

2024-04-09 15:30:32 [8062][[WARNING] ] CatRouter Json Parser Error before: [

HTTP Status 400 – Bad Request

HTTP Status 400 – Bad Request


Type Exception Report

Message The HTTP header line [host 10.160.4.29] does not conform to RFC 7230. The request has been rejected.

Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

Exception

java.lang.IllegalArgumentException: The HTTP header line [host 10.160.4.29] does not conform to RFC 7230. The request has been rejec
2024-04-09 15:30:32  [8062][[DEBUG] ] Get router from server successfully
2024-04-09 15:30:32  [8062][[DEBUG] ] Trying connecting to the best server
2024-04-09 15:30:32  [8062][[INFO] ] Try connect to server 127.0.0.1:2280.
2024-04-09 15:30:32  [8062][[WARNING] ] Cannot connect to server 127.0.0.1:2280.
2024-04-09 15:30:32  [8062][[INFO] ] Try connect to server 127.0.0.1:2280.
2024-04-09 15:30:32  [8062][[WARNING] ] Cannot connect to server 127.0.0.1:2280.
2024-04-09 15:30:32  [8062][[INFO] ] Try connect to server 127.0.0.1:2280.
2024-04-09 15:30:32  [8062][[WARNING] ] Cannot connect to server 127.0.0.1:2280.
2024-04-09 15:30:32  [8062][[ERROR] ] Failed to initialize cat: Error occurred while getting router config from remote server.
2024-04-09 15:30:32  [8062][[INFO] ] Cat has been initialized with appkey: gksk-ai-platform-ocr-paddle

czs397001 avatar Apr 09 '24 08:04 czs397001

你的server换成80端口试试?sdk代码里host没加port,感觉非80或者443会有问题

jiujiuwen avatar Aug 22 '24 00:08 jiujiuwen

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

sunwentao avatar Aug 22 '24 00:08 sunwentao