Giter VIP home page Giter VIP logo

Comments (3)

mornone avatar mornone commented on August 18, 2024 1

2023-04-11T10:28:01.251+08:00 WARN 30387 --- [nio-3002-exec-4] c.h.c.base.handler.SensitiveWordHandler : 开始构建敏感词树 2023-04-11T10:28:01.318+08:00 WARN 30387 --- [nio-3002-exec-4] c.h.c.base.handler.SensitiveWordHandler : 查询数据库,敏感词数量为:1061 个 2023-04-11T10:28:02.438+08:00 WARN 30387 --- [.openai.com/...] c.h.c.f.a.l.ParsedEventSourceListener : 消息发送异常,当前已接收消息:,响应内容:{ "error": { "message": "Invalid URL (POST /}v1/chat/completions)", "type": "invalid_request_error", "param": null, "code": null } } ,异常堆栈: Exception in thread "OkHttp Dispatcher" java.lang.IllegalArgumentException: argument "content" is null at com.fasterxml.jackson.databind.ObjectMapper._assertNotNull(ObjectMapper.java:4885) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3644) at com.hncboy.chatgpt.base.util.ObjectMapperUtil.fromJson(ObjectMapperUtil.java:44) at com.hncboy.chatgpt.front.api.parser.ChatCompletionResponseParser.parseSuccess(ChatCompletionResponseParser.java:23) at com.hncboy.chatgpt.front.api.parser.ChatCompletionResponseParser.parseSuccess(ChatCompletionResponseParser.java:18) at com.hncboy.chatgpt.front.api.storage.ApiKeyDatabaseDataStorage.populateMessageUsageToken(ApiKeyDatabaseDataStorage.java:44) at com.hncboy.chatgpt.front.api.storage.ApiKeyDatabaseDataStorage.onErrorMessage(ApiKeyDatabaseDataStorage.java:34) at com.hncboy.chatgpt.front.api.storage.AbstractDatabaseDataStorage.onError(AbstractDatabaseDataStorage.java:121) at com.hncboy.chatgpt.front.api.listener.ParsedEventSourceListener.onFailure(ParsedEventSourceListener.java:167) at okhttp3.internal.sse.RealEventSource.processResponse(RealEventSource.kt:52) at okhttp3.internal.sse.RealEventSource.onResponse(RealEventSource.kt:46) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) /

数据库中已正常记录消息数据
*************************** 4. row ***************************
id: 1645614650504531970
message_id: 5130ec3b-8667-4b53-9b4a-a5b23de87ec6
parent_message_id: NULL
parent_answer_message_id: NULL
parent_question_message_id: NULL
context_count: 1
question_context_count: 1
message_type: 1
chat_room_id: 1645614650504531971
conversation_id: NULL
api_type: ApiKey
api_key: xxx
content: test
original_data: {"model":"gpt-3.5-turbo","messages":[{"role":"system","content":"You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown."},{"role":"user","content":"test"}],"temperature":0.8,"n":1,"stream":true,"top_p":1.0,"max_tokens":1000,"presence_penalty":1.0,"frequency_penalty":0.0}
response_error_data: {
"error": {
"message": "Invalid URL (POST /}v1/chat/completions)",
"type": "invalid_request_error",
"param": null,
"code": null
}
}

         prompt_tokens: -1
     completion_tokens: -1
          total_tokens: -1
                    ip: 144.202.48.47
                status: 3
               is_hide: 0
           create_time: 2023-04-11 10:28:01
           update_time: 2023-04-11 10:28:02

数据库中已经有了数据,idea中运行测试没问题,打jar包上传服务器运行报这个错误,前端界面能正常访问输入。

from ai-beehive.

TSiven avatar TSiven commented on August 18, 2024

再补充一个异常信息

okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL at okhttp3.internal.http2.Http2Stream$FramingSource.read(Http2Stream.kt:355) at okhttp3.internal.connection.Exchange$ResponseBodySource.read(Exchange.kt:276) at okio.RealBufferedSource.select(RealBufferedSource.kt:229) at okhttp3.internal.sse.ServerSentEventReader.processNextEvent(ServerSentEventReader.kt:50) at okhttp3.internal.sse.RealEventSource.processResponse(RealEventSource.kt:75) at okhttp3.internal.sse.RealEventSource.onResponse(RealEventSource.kt:46) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

from ai-beehive.

hncboy avatar hncboy commented on August 18, 2024

2023-04-11T10:28:01.251+08:00 WARN 30387 --- [nio-3002-exec-4] c.h.c.base.handler.SensitiveWordHandler : 开始构建敏感词树 2023-04-11T10:28:01.318+08:00 WARN 30387 --- [nio-3002-exec-4] c.h.c.base.handler.SensitiveWordHandler : 查询数据库,敏感词数量为:1061 个 2023-04-11T10:28:02.438+08:00 WARN 30387 --- [.openai.com/...] c.h.c.f.a.l.ParsedEventSourceListener : 消息发送异常,当前已接收消息:,响应内容:{ "error": { "message": "Invalid URL (POST /}v1/chat/completions)", "type": "invalid_request_error", "param": null, "code": null } } ,异常堆栈: Exception in thread "OkHttp Dispatcher" java.lang.IllegalArgumentException: argument "content" is null at com.fasterxml.jackson.databind.ObjectMapper._assertNotNull(ObjectMapper.java:4885) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3644) at com.hncboy.chatgpt.base.util.ObjectMapperUtil.fromJson(ObjectMapperUtil.java:44) at com.hncboy.chatgpt.front.api.parser.ChatCompletionResponseParser.parseSuccess(ChatCompletionResponseParser.java:23) at com.hncboy.chatgpt.front.api.parser.ChatCompletionResponseParser.parseSuccess(ChatCompletionResponseParser.java:18) at com.hncboy.chatgpt.front.api.storage.ApiKeyDatabaseDataStorage.populateMessageUsageToken(ApiKeyDatabaseDataStorage.java:44) at com.hncboy.chatgpt.front.api.storage.ApiKeyDatabaseDataStorage.onErrorMessage(ApiKeyDatabaseDataStorage.java:34) at com.hncboy.chatgpt.front.api.storage.AbstractDatabaseDataStorage.onError(AbstractDatabaseDataStorage.java:121) at com.hncboy.chatgpt.front.api.listener.ParsedEventSourceListener.onFailure(ParsedEventSourceListener.java:167) at okhttp3.internal.sse.RealEventSource.processResponse(RealEventSource.kt:52) at okhttp3.internal.sse.RealEventSource.onResponse(RealEventSource.kt:46) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) /

数据库中已正常记录消息数据 *************************** 4. row *************************** id: 1645614650504531970 message_id: 5130ec3b-8667-4b53-9b4a-a5b23de87ec6 parent_message_id: NULL parent_answer_message_id: NULL parent_question_message_id: NULL context_count: 1 question_context_count: 1 message_type: 1 chat_room_id: 1645614650504531971 conversation_id: NULL api_type: ApiKey api_key: xxx content: test original_data: {"model":"gpt-3.5-turbo","messages":[{"role":"system","content":"You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown."},{"role":"user","content":"test"}],"temperature":0.8,"n":1,"stream":true,"top_p":1.0,"max_tokens":1000,"presence_penalty":1.0,"frequency_penalty":0.0} response_error_data: { "error": { "message": "Invalid URL (POST /}v1/chat/completions)", "type": "invalid_request_error", "param": null, "code": null } }

         prompt_tokens: -1
     completion_tokens: -1
          total_tokens: -1
                    ip: 144.202.48.47
                status: 3
               is_hide: 0
           create_time: 2023-04-11 10:28:01
           update_time: 2023-04-11 10:28:02

数据库中已经有了数据,idea中运行测试没问题,打jar包上传服务器运行报这个错误,前端界面能正常访问输入。

application-pord.yml 有问题,最新版本已修复。

from ai-beehive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.