OpenChat icon indicating copy to clipboard operation
OpenChat copied to clipboard

500 (Internal Server Error) When sending a message.

Open nikschulte opened this issue 2 years ago • 11 comments

After setting up the chatbot I either get a 500 (Internal Server Error) in the console or the chatbot tells me that it has not context.

nikschulte avatar Jun 05 '23 11:06 nikschulte

I have the same: the error: "The GET method is not supported for route chat/(*)/send-message. Supported methods: POST."

Jensdnl avatar Jun 05 '23 13:06 Jensdnl

Can you share the logs of of your openchat setup?

gharbat avatar Jun 05 '23 22:06 gharbat

2023-06-06 10:57:28 openchat-llm-server-1 | wait - compiling /api/chat (client and server)... 2023-06-06 10:57:28 openchat-llm-server-1 | event - compiled successfully in 354 ms (46 modules) 2023-06-06 10:57:29 openchat-llm-server-1 | req.body { 2023-06-06 10:57:29 openchat-llm-server-1 | question: 'test', 2023-06-06 10:57:29 openchat-llm-server-1 | history: [ 'test' ], 2023-06-06 10:57:29 openchat-llm-server-1 | namespace: 'f6f6c87a-6796-4a57-b592-b2498bcfc42d', 2023-06-06 10:57:29 openchat-llm-server-1 | mode: 'assistant' 2023-06-06 10:57:29 openchat-llm-server-1 | } 2023-06-06 10:57:29 openchat-llm-server-1 | { 2023-06-06 10:57:29 openchat-llm-server-1 | question: 'test', 2023-06-06 10:57:29 openchat-llm-server-1 | history: [ 'test' ], 2023-06-06 10:57:29 openchat-llm-server-1 | namespace: 'f6f6c87a-6796-4a57-b592-b2498bcfc42d', 2023-06-06 10:57:29 openchat-llm-server-1 | mode: 'assistant' 2023-06-06 10:57:29 openchat-llm-server-1 | } 2023-06-06 10:57:33 openchat-llm-server-1 | error [ErrorWithoutStackTrace: PineconeClient: Error calling query: ErrorWithoutStackTrace: PineconeClient: Error calling queryRaw: FetchError: The request failed and the interceptors did not return an alternative response]

Jensdnl avatar Jun 06 '23 08:06 Jensdnl

I am getting this too

2023-06-06 04:35:14 error [ErrorWithoutStackTrace: PineconeClient: Error calling query: ErrorWithoutStackTrace: PineconeClient: Error calling queryRaw: FetchError: The request failed and the interceptors did not return an alternative response]

maybe pinecone env files setup wrong?

image

brandoncamerer avatar Jun 06 '23 11:06 brandoncamerer

Same Error 500:

sendMessage
http://localhost:8000/chat/jmKox7RXJU4slrph8Cr6:197:18
onclick
http://localhost:8000/chat/jmKox7RXJU4slrph8Cr6:1:1

GrittiMarcos avatar Jun 06 '23 15:06 GrittiMarcos

Same Error 500

$response = Http::timeout(200)->post("http://llm-server:3000/api/chat", [ 'question' => $question, 'history' => $history, 'namespace' => $bot->getId()->toString(), 'mode' => $mode, ]);

Getting following response from above code in ChatbotController

PineconeClient: Error calling query: ErrorWithoutStackTrace: PineconeClient: Error calling queryRaw: FetchError: The request failed and the interceptors did not return an alternative response

auramatics-tech avatar Jun 08 '23 12:06 auramatics-tech

Other users reported that the vector DB was full, can you double check that?

gharbat avatar Jun 08 '23 13:06 gharbat

Other users reported that the vector DB was full, can you double check that?

image

I am not sure what this means but ChatGPT thinks my vectorDB is redis-1.. Here are my logs for that.. or are you talking about pinecone? If so, how do I check that? Right now it says I am using 0 total vectors.

Memory

used_memory:821568 used_memory_human:802.31K used_memory_rss:3649536 used_memory_rss_human:3.48M used_memory_peak:821568 used_memory_peak_human:802.31K total_system_memory:8240795648 total_system_memory_human:7.67G used_memory_lua:37888 used_memory_lua_human:37.00K maxmemory:0 maxmemory_human:0B maxmemory_policy:noeviction mem_fragmentation_ratio:4.44 mem_allocator:jemalloc-4.0.3


2023-06-08 06:22:37 1:C 08 Jun 13:22:37.724 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 2023-06-08 06:22:37 .
2023-06-08 06:22:37 .-__ ''-._ 2023-06-08 06:22:37 _.- . . ''-._ Redis 3.2.12 (00000000/0) 64 bit 2023-06-08 06:22:37 .- .-```. ```\/ _.,_ ''-._ 2023-06-08 06:22:37 ( ' , .-` | `, ) Running in standalone mode 2023-06-08 06:22:37 |`-._`-...-` __...-.-.|'_.-'| Port: 6379 2023-06-08 06:22:37 | -. ._ / _.-' | PID: 1 2023-06-08 06:22:37 -._ -._ -./ .-' .-'
2023-06-08 06:22:37 |-._-.
-.__.-' _.-'_.-'| 2023-06-08 06:22:37 | -.
-._ _.-'_.-' | http://redis.io 2023-06-08 06:22:37 -._ -._-..-'.-' .-'
2023-06-08 06:22:37 |-._-.
-.__.-' _.-'_.-'| 2023-06-08 06:22:37 | -.
-._ _.-'_.-' | 2023-06-08 06:22:37 -._ -._-.
.-'_.-' _.-'
2023-06-08 06:22:37 -._ -..-' _.-'
2023-06-08 06:22:37 -._ _.-' 2023-06-08 06:22:37 -.
.-'
2023-06-08 06:22:37 2023-06-08 06:22:37 1:M 08 Jun 13:22:37.739 # Server started, Redis version 3.2.12 2023-06-08 06:22:37 1:M 08 Jun 13:22:37.741 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. 2023-06-08 06:22:37 1:M 08 Jun 13:22:37.741 * The server is now ready to accept connections on port 6379 `

brandoncamerer avatar Jun 08 '23 13:06 brandoncamerer

Ok , I got it running in windows then received the same error, which makes me think it has something to do with my environment file.

brandoncamerer avatar Jun 08 '23 17:06 brandoncamerer

Oh, word on the street is it doesn't work with the free tier of Pinecone

brandoncamerer avatar Jun 08 '23 18:06 brandoncamerer

Same issue

2023-06-11 18:32:37 openchat-backend-server-1 | 2023-06-11 23:32:37 ................................................... ~ 0s 2023-06-11 18:32:39 openchat-llm-server-1 | req.body { 2023-06-11 18:32:39 openchat-llm-server-1 | question: 'Hi', 2023-06-11 18:32:39 openchat-llm-server-1 | history: [ 'Hi' ], 2023-06-11 18:32:39 openchat-llm-server-1 | namespace: '4e01288b-e478-4e22-9995-d2c260fa8f1b', 2023-06-11 18:32:39 openchat-llm-server-1 | mode: 'assistant' 2023-06-11 18:32:39 openchat-llm-server-1 | } 2023-06-11 18:32:39 openchat-llm-server-1 | { 2023-06-11 18:32:39 openchat-llm-server-1 | question: 'Hi', 2023-06-11 18:32:39 openchat-llm-server-1 | history: [ 'Hi' ], 2023-06-11 18:32:39 openchat-llm-server-1 | namespace: '4e01288b-e478-4e22-9995-d2c260fa8f1b', 2023-06-11 18:32:39 openchat-llm-server-1 | mode: 'assistant' 2023-06-11 18:32:39 openchat-llm-server-1 | } 2023-06-11 18:32:40 openchat-llm-server-1 | error [ErrorWithoutStackTrace: PineconeClient: Error calling query: ErrorWithoutStackTrace: PineconeClient: Error calling queryRaw: FetchError: The request failed and the interceptors did not return an alternative response] 2023-06-11 18:32:41 openchat-backend-server-1 | 2023-06-11 23:32:38 ................................................... ~ 2s

t-boris avatar Jun 11 '23 23:06 t-boris

Getting the same error

SzymonDziak avatar Jul 10 '23 04:07 SzymonDziak

I'm also getting the same error

0xT3chN0 avatar Jul 19 '23 13:07 0xT3chN0