Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
czs397001 opened this issue Apr 9, 2024 · 2 comments
Open

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

czs397001 opened this issue Apr 9, 2024 · 2 comments

Comments

@czs397001
Copy link

  • Got available server list:
    <!doctype html><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style>

    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: [<!doctype html><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style>

    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
@jiujiuwen
Copy link

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

@sunwentao
Copy link

sunwentao commented Aug 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants