Comments (3)
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.
再补充一个异常信息
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.
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)
- docker中的日志文件在哪呀 没找到 HOT 1
- 请问下大家yml中api_reverse_proxy参数如何配置 HOT 1
- MJ V 操作后无法再次 UV
- v1.1.0 AccessToken 模式报错
- 打包为dist并部署到nginx后,前端无法显示实时聊天内容 HOT 2
- 为什么要限制对话的消息的总长度呢? HOT 6
- 增加对百度文心千帆大模型的支持
- NewBing 无法使用修复
- NewBing 待修复
- 发出后的信息没有换行了,出现平台和百度文心一言后台返回结果不一样。
- 前端每次读取内容,会偶尔出现 读取一半的json数据 HOT 1
- 增加 ChatGLM2-6B 开源模型
- Hardcoded Vulnerabilities HOT 2
- 代理地址的端口号怎么填写 HOT 3
- Midjourney参数配置都正确了,但是请求发到Discord的时候连接关闭 HOT 1
- 2.0.0 版本 chat_room,chat_message,/rate_limit 等接口404 HOT 1
- 将配置文件以JSON形式存入数据库的目的是什么? HOT 1
- token 验证目前存在bug 各种路径未生效 HOT 1
- 后端只有客户端接口,没有管理端接口吗 HOT 1
- 体验版发送消息报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai-beehive.