lanqian528 / chat2api

A service that can convert ChatGPT on the web to OpenAI API format.
https://chatgpt.aicnm.cc/login
MIT License
2.22k stars 453 forks source link

通过域名访问的问题 #178

Open maoling1411 opened 4 weeks ago

maoling1411 commented 4 weeks ago

image 大佬,你好,为什么我通过 域名/login 访问就会报这个错误,但是通过 ip+port/login 访问就是正常的,页面能访问,就是一问问题就报错

kerrrrrry commented 3 weeks ago

+1

lanqian528 commented 3 weeks ago

用cf的小黄云吧

kerrrrrry commented 3 weeks ago

有的 image

lanqian528 commented 3 weeks ago

报错发后台日志和报错信息,我不是赛博神医

kerrrrrry commented 3 weeks ago

ok 不好意思 image

2024-11-09 14:22:38,720 | INFO | Application shutdown complete. 2024-11-09 14:22:38,720 | INFO | Finished server process [1] 2024-11-09 14:22:40,146 | INFO | ------------------------------------------------------------ 2024-11-09 14:22:40,147 | INFO | Chat2Api 1.7.0-beta3 | https://github.com/lanqian528/chat2api 2024-11-09 14:22:40,147 | INFO | ------------------------------------------------------------ 2024-11-09 14:22:40,147 | INFO | Environment variables: 2024-11-09 14:22:40,147 | INFO | ------------------------- Security ------------------------- 2024-11-09 14:22:40,147 | INFO | API_PREFIX: None 2024-11-09 14:22:40,147 | INFO | AUTHORIZATION: [''] 2024-11-09 14:22:40,147 | INFO | AUTH_KEY: None 2024-11-09 14:22:40,147 | INFO | ------------------------- Request -------------------------- 2024-11-09 14:22:40,148 | INFO | CHATGPT_BASE_URL: ['https://chatgpt.com'] 2024-11-09 14:22:40,148 | INFO | PROXY_URL: ['socks5://warp:1080'] 2024-11-09 14:22:40,148 | INFO | EXPORT_PROXY_URL: None 2024-11-09 14:22:40,148 | INFO | IMPERSONATE: [] 2024-11-09 14:22:40,148 | INFO | USER_AGENTS: [] 2024-11-09 14:22:40,148 | INFO | ---------------------- Functionality ----------------------- 2024-11-09 14:22:40,148 | INFO | HISTORY_DISABLED: True 2024-11-09 14:22:40,148 | INFO | POW_DIFFICULTY: 000032 2024-11-09 14:22:40,148 | INFO | RETRY_TIMES: 3 2024-11-09 14:22:40,148 | INFO | CONVERSATION_ONLY: False 2024-11-09 14:22:40,148 | INFO | ENABLE_LIMIT: False 2024-11-09 14:22:40,148 | INFO | UPLOAD_BY_URL: False 2024-11-09 14:22:40,149 | INFO | CHECK_MODEL: False 2024-11-09 14:22:40,149 | INFO | SCHEDULED_REFRESH: False 2024-11-09 14:22:40,149 | INFO | RANDOM_TOKEN: True 2024-11-09 14:22:40,149 | INFO | ------------------------- Gateway -------------------------- 2024-11-09 14:22:40,149 | INFO | ENABLE_GATEWAY: True 2024-11-09 14:22:40,149 | INFO | AUTO_SEED: True 2024-11-09 14:22:40,149 | INFO | ------------------------------------------------------------ 2024-11-09 14:22:40,174 | INFO | Token list count: 3, Error token list count: 0 2024-11-09 14:22:40,174 | INFO | ------------------------------------------------------------ 2024-11-09 14:22:40,316 | INFO | Started server process [1] 2024-11-09 14:22:40,317 | INFO | Waiting for application startup. 2024-11-09 14:22:40,317 | INFO | Application startup complete. 2024-11-09 14:22:40,318 | INFO | Uvicorn running on http://0.0.0.0:5005 (Press CTRL+C to quit) 2024-11-09 14:23:40,071 | INFO | 172.20.0.1:58970: GET / HTTP/1.1 200 OK 2024-11-09 14:23:41,599 | INFO | 172.20.0.1:59074: POST /v1/rgstr HTTP/1.1 202 Accepted 2024-11-09 14:23:41,617 | INFO | 172.20.0.1:59004: GET /public-api/conversation_limit HTTP/1.1 200 OK 2024-11-09 14:23:41,622 | INFO | 172.20.0.1:58996: GET /backend-api/edge HTTP/1.1 204 No Content 2024-11-09 14:23:41,664 | INFO | 172.20.0.1:59014: GET /backend-api/system_hints HTTP/1.1 200 OK 2024-11-09 14:23:41,688 | INFO | 172.20.0.1:59030: GET /backend-api/connectors/check?connector_names=gdrive&connector_names=o365_personal&connector_names=o365_business HTTP/1.1 200 OK 2024-11-09 14:23:41,692 | INFO | 172.20.0.1:59068: GET /backend-api/prompt_library/?limit=4&offset=0 HTTP/1.1 200 OK 2024-11-09 14:23:41,697 | INFO | 172.20.0.1:59062: GET /backend-api/me HTTP/1.1 200 OK 2024-11-09 14:23:41,703 | INFO | 172.20.0.1:58984: POST /backend-api/conversation/init HTTP/1.1 200 OK 2024-11-09 14:23:41,732 | INFO | 172.20.0.1:59038: GET /backend-api/settings/user HTTP/1.1 200 OK 2024-11-09 14:23:41,752 | INFO | 172.20.0.1:59050: GET /backend-api/models?history_and_training_disabled=false HTTP/1.1 200 OK 2024-11-09 14:23:42,188 | INFO | 172.20.0.1:59082: POST /backend-api/sentinel/chat-requirements HTTP/1.1 200 OK 2024-11-09 14:23:42,272 | INFO | 172.20.0.1:59112: POST /v1/rgstr HTTP/1.1 202 Accepted 2024-11-09 14:23:42,385 | INFO | 172.20.0.1:59094: GET /backend-api/prompt_library/?limit=4&offset=0&model_slug=auto HTTP/1.1 200 OK 2024-11-09 14:23:42,444 | INFO | 172.20.0.1:59098: GET /backend-api/prompt_library/?limit=8&offset=0&use_v2=true&model_slug=auto HTTP/1.1 200 OK 2024-11-09 14:23:46,215 | INFO | 172.20.0.1:41458: GET /backend-api/accounts/check/v4-2023-04-27?timezone_offset_min=-660 HTTP/1.1 200 OK 2024-11-09 14:23:47,022 | INFO | 172.20.0.1:41464: GET /ces/v1/projects/oai/settings HTTP/1.1 404 Not Found 2024-11-09 14:23:47,067 | INFO | 172.20.0.1:41534: POST /v1/rgstr HTTP/1.1 202 Accepted 2024-11-09 14:23:47,162 | INFO | 172.20.0.1:41472: POST /v1/initialize HTTP/1.1 200 OK 2024-11-09 14:23:47,208 | INFO | 172.20.0.1:41488: GET /backend-api/memories?include_memory_entries=false HTTP/1.1 200 OK 2024-11-09 14:23:47,275 | INFO | 172.20.0.1:41518: GET /backend-api/user_surveys/active HTTP/1.1 200 OK 2024-11-09 14:23:47,279 | INFO | 172.20.0.1:41510: GET /backend-api/conversations?offset=0&limit=28&order=updated HTTP/1.1 200 OK 2024-11-09 14:23:47,361 | INFO | 172.20.0.1:41494: POST /backend-api/sentinel/chat-requirements HTTP/1.1 200 OK 2024-11-09 14:23:47,382 | INFO | 172.20.0.1:41536: GET /backend-api/gizmos/bootstrap?limit=2 HTTP/1.1 200 OK 2024-11-09 14:23:47,571 | INFO | 172.20.0.1:41538: POST /v1/rgstr HTTP/1.1 202 Accepted 2024-11-09 14:23:48,618 | INFO | 172.20.0.1:41542: POST /v1/rgstr HTTP/1.1 202 Accepted 2024-11-09 14:23:49,597 | INFO | 172.20.0.1:41546: POST /v1/rgstr HTTP/1.1 202 Accepted 2024-11-09 14:23:50,658 | INFO | 172.20.0.1:41568: POST /v1/rgstr_b?k=client-e603C1J5XKDc1uGaxqjKesU5bmT1Pge1gCndOG5OdhH HTTP/1.1 202 Accepted 2024-11-09 14:23:50,698 | INFO | 172.20.0.1:41554: POST /v1/rgstr_b?k=client-tnE5GCU2F2cTxRiMbvTczMDT1jpwIigZHsZSdqiy4u HTTP/1.1 202 Accepted

lanqian528 commented 2 weeks ago

日志看起来没有报错呢,你f12看看哪里报错了