-
Notifications
You must be signed in to change notification settings - Fork 244
Description
glm-free-api |
glm-free-api | > glm-free-api@0.0.37 start
glm-free-api | > node --enable-source-maps dist/index.js
glm-free-api |
glm-free-api | [2025-06-17 10:23:13.825][success][server.ts<45,16>] Server initialized
glm-free-api | [2025-06-17 10:23:13.920][info][index.ts<15,10>] <<<< glm free server >>>>
glm-free-api | [2025-06-17 10:23:13.925][info][index.ts<16,10>] Version: 0.0.37
glm-free-api | [2025-06-17 10:23:13.926][info][index.ts<17,10>] Process id: 18
glm-free-api | [2025-06-17 10:23:13.933][info][index.ts<18,10>] Environment: dev
glm-free-api | [2025-06-17 10:23:13.937][info][index.ts<19,10>] Service name: glm-free-api
glm-free-api | [2025-06-17 10:23:13.952][info][server.ts<70,20>] Route attached
glm-free-api | [2025-06-17 10:23:13.954][info][server.ts<70,20>] Route /v1/chat attached
glm-free-api | [2025-06-17 10:23:13.956][info][server.ts<70,20>] Route /v1/images attached
glm-free-api | [2025-06-17 10:23:13.959][info][server.ts<70,20>] Route /v1/videos attached
glm-free-api | [2025-06-17 10:23:13.963][info][server.ts<70,20>] Route /ping attached
glm-free-api | [2025-06-17 10:23:13.965][info][server.ts<70,20>] Route /token attached
glm-free-api | [2025-06-17 10:23:13.968][info][server.ts<70,20>] Route /v1 attached
glm-free-api | [2025-06-17 10:23:13.997][success][server.ts<168,16>] Server listening on port 8000 (0.0.0.0)
glm-free-api | [2025-06-17 10:23:13.998][success][index.ts<28,12>] Service startup completed (87ms)
glm-free-api | [2025-06-17 10:24:25.268][info][server.ts<99,28>] -> POST /v1/chat/completions
glm-free-api | [2025-06-17 10:24:25.279][info][chat.ts<223,12>] [
glm-free-api | {
glm-free-api | role: 'user',
glm-free-api | content: 'Output only your specific model name with no additional text.'
glm-free-api | }
glm-free-api | ]
glm-free-api | [2025-06-17 10:24:25.281][info][chat.ts<773,10>] 本次请求上传:0个文件
glm-free-api | [2025-06-17 10:24:25.283][info][chat.ts<95,10>] Refresh token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiLnlKjmiLdfMTg2IiwiZXhwIjoxNzY1Njc4Mjc3LCJuYmYiOjE3NTAxMjYyNzcsImlhdCI6MTc1MDEyNjI3NywianRpIjoiMTZhNmE3NDhkOWNkNDRmNzg0ZWIxYjYwMDQyM2ZlZmYiLCJ1aWQiOiI2NjU1NzkwM2MzZjRlNDk2YzMwMmU4OTIiLCJkZXZpY2VfaWQiOiI0MThlNmY0MDY2ZWE0NTk3OTdiMzdjNzE0N2QwMjYwMCIsInR5cGUiOiJyZWZyZXNoIn0.WN0Aws5NmHypEppTKbyeO-uk4Mwd45_FBi3NlY_qZ_0
glm-free-api | [2025-06-17 10:24:26.309][error][chat.ts<309,14>] Stream response error: Error: [请求glm失败]: unauthorized user(40105)
glm-free-api | at checkResult (/app/src/api/controllers/chat.ts:1007:9)
glm-free-api | at (/app/src/api/controllers/chat.ts:118:33)
glm-free-api | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
glm-free-api | at async requestToken (/app/src/api/controllers/chat.ts:96:18)
glm-free-api | at async acquireToken (/app/src/api/controllers/chat.ts:159:14)
glm-free-api | at async (/app/src/api/controllers/chat.ts:250:19)
glm-free-api | at async /completions (/app/src/api/routes/chat.ts:31:24)
glm-free-api | [2025-06-17 10:24:26.310][warning][chat.ts<310,14>] Try again after 5s...
glm-free-api | [2025-06-17 10:24:31.312][info][chat.ts<223,12>] [
glm-free-api | {
glm-free-api | role: 'user',
glm-free-api | content: 'Output only your specific model name with no additional text.'
glm-free-api | }
glm-free-api | ]
glm-free-api | [2025-06-17 10:24:31.314][info][chat.ts<773,10>] 本次请求上传:0个文件
glm-free-api | [2025-06-17 10:24:31.314][info][chat.ts<95,10>] Refresh token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiLnlKjmiLdfMTg2IiwiZXhwIjoxNzY1Njc4Mjc3LCJuYmYiOjE3NTAxMjYyNzcsImlhdCI6MTc1MDEyNjI3NywianRpIjoiMTZhNmE3NDhkOWNkNDRmNzg0ZWIxYjYwMDQyM2ZlZmYiLCJ1aWQiOiI2NjU1NzkwM2MzZjRlNDk2YzMwMmU4OTIiLCJkZXZpY2VfaWQiOiI0MThlNmY0MDY2ZWE0NTk3OTdiMzdjNzE0N2QwMjYwMCIsInR5cGUiOiJyZWZyZXNoIn0.WN0Aws5NmHypEppTKbyeO-uk4Mwd45_FBi3NlY_qZ_0
glm-free-api | [2025-06-17 10:24:31.696][error][chat.ts<309,14>] Stream response error: Error: [请求glm失败]: unauthorized user(40105)
glm-free-api | at checkResult (/app/src/api/controllers/chat.ts:1007:9)
glm-free-api | at (/app/src/api/controllers/chat.ts:118:33)
glm-free-api | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
glm-free-api | at async requestToken (/app/src/api/controllers/chat.ts:96:18)
glm-free-api | at async acquireToken (/app/src/api/controllers/chat.ts:159:14)
glm-free-api | at async (/app/src/api/controllers/chat.ts:250:19)
glm-free-api | at async /completions (/app/src/api/routes/chat.ts:31:24)
glm-free-api | [2025-06-17 10:24:31.697][warning][chat.ts<310,14>] Try again after 5s...
glm-free-api | [2025-06-17 10:24:36.699][info][chat.ts<223,12>] [
glm-free-api | {
glm-free-api | role: 'user',
glm-free-api | content: 'Output only your specific model name with no additional text.'
glm-free-api | }
glm-free-api | ]
glm-free-api | [2025-06-17 10:24:36.701][info][chat.ts<773,10>] 本次请求上传:0个文件
glm-free-api | [2025-06-17 10:24:36.702][info][chat.ts<95,10>] Refresh token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiLnlKjmiLdfMTg2IiwiZXhwIjoxNzY1Njc4Mjc3LCJuYmYiOjE3NTAxMjYyNzcsImlhdCI6MTc1MDEyNjI3NywianRpIjoiMTZhNmE3NDhkOWNkNDRmNzg0ZWIxYjYwMDQyM2ZlZmYiLCJ1aWQiOiI2NjU1NzkwM2MzZjRlNDk2YzMwMmU4OTIiLCJkZXZpY2VfaWQiOiI0MThlNmY0MDY2ZWE0NTk3OTdiMzdjNzE0N2QwMjYwMCIsInR5cGUiOiJyZWZyZXNoIn0.WN0Aws5NmHypEppTKbyeO-uk4Mwd45_FBi3NlY_qZ_0
glm-free-api | [2025-06-17 10:24:36.878][error][chat.ts<309,14>] Stream response error: Error: [请求glm失败]: unauthorized user(40105)
glm-free-api | at checkResult (/app/src/api/controllers/chat.ts:1007:9)
glm-free-api | at (/app/src/api/controllers/chat.ts:118:33)
glm-free-api | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
glm-free-api | at async requestToken (/app/src/api/controllers/chat.ts:96:18)
glm-free-api | at async acquireToken (/app/src/api/controllers/chat.ts:159:14)
glm-free-api | at async (/app/src/api/controllers/chat.ts:250:19)
glm-free-api | at async /completions (/app/src/api/routes/chat.ts:31:24)
glm-free-api | [2025-06-17 10:24:36.878][warning][chat.ts<310,14>] Try again after 5s...
glm-free-api | [2025-06-17 10:24:41.884][info][chat.ts<223,12>] [
glm-free-api | {
glm-free-api | role: 'user',
glm-free-api | content: 'Output only your specific model name with no additional text.'
glm-free-api | }
glm-free-api | ]
glm-free-api | [2025-06-17 10:24:41.886][info][chat.ts<773,10>] 本次请求上传:0个文件
glm-free-api | [2025-06-17 10:24:41.887][info][chat.ts<95,10>] Refresh token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiLnlKjmiLdfMTg2IiwiZXhwIjoxNzY1Njc4Mjc3LCJuYmYiOjE3NTAxMjYyNzcsImlhdCI6MTc1MDEyNjI3NywianRpIjoiMTZhNmE3NDhkOWNkNDRmNzg0ZWIxYjYwMDQyM2ZlZmYiLCJ1aWQiOiI2NjU1NzkwM2MzZjRlNDk2YzMwMmU4OTIiLCJkZXZpY2VfaWQiOiI0MThlNmY0MDY2ZWE0NTk3OTdiMzdjNzE0N2QwMjYwMCIsInR5cGUiOiJyZWZyZXNoIn0.WN0Aws5NmHypEppTKbyeO-uk4Mwd45_FBi3NlY_qZ_0
glm-free-api | [2025-06-17 10:24:42.313][error][server.ts<121,32>] APIException [Error]: [请求glm失败]: unauthorized user(40105)
glm-free-api | at checkResult (/app/src/api/controllers/chat.ts:1007:9)
glm-free-api | at (/app/src/api/controllers/chat.ts:118:33)
glm-free-api | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
glm-free-api | at async requestToken (/app/src/api/controllers/chat.ts:96:18)
glm-free-api | at async acquireToken (/app/src/api/controllers/chat.ts:159:14)
glm-free-api | at async (/app/src/api/controllers/chat.ts:250:19)
glm-free-api | at async /completions (/app/src/api/routes/chat.ts:31:24) {
glm-free-api | errcode: -2001,
glm-free-api | errmsg: '[请求glm失败]: unauthorized user(40105)',
glm-free-api | data: undefined,
glm-free-api | httpStatusCode: undefined
glm-free-api | }
glm-free-api | [2025-06-17 10:24:42.328][info][server.ts<66,36>] <- POST /v1/chat/completions 17050ms