Could not send chat #60

Closed
opened 2026-02-28 04:23:45 -05:00 by deekerman · 8 comments
Owner

Originally created by @IMCARLOSEHR on GitHub (Jun 19, 2023).

I am using with docker, with the help of GPT I was able to get to the browser UI but when I insert a query it says:

localhost:3001 says
Could not send chat

GPT has no clue why

Originally created by @IMCARLOSEHR on GitHub (Jun 19, 2023). I am using with docker, with the help of GPT I was able to get to the browser UI but when I insert a query it says: localhost:3001 says Could not send chat GPT has no clue why
Author
Owner

@argondigitalmoen commented on GitHub (Jun 19, 2023):

I'm having the same issue. When I go to System Settings, all of the fields are green as well. Any idea what else it might be?

@argondigitalmoen commented on GitHub (Jun 19, 2023): I'm having the same issue. When I go to System Settings, all of the fields are green as well. Any idea what else it might be?
Author
Owner

@frasergr commented on GitHub (Jun 19, 2023):

Have a look at the container logs docker logs anything-llm and see if there's any hints there.

@frasergr commented on GitHub (Jun 19, 2023): Have a look at the container logs `docker logs anything-llm` and see if there's any hints there.
Author
Owner

@jkrobin commented on GitHub (Jun 21, 2023):

Same error and conditions here. I do see the following in the Docker log, however:

PineconeClient: Error calling describeIndex: 404: Not Found [PineconeError: PineconeClient: Error calling describeIndex: 404: Not Found]

@jkrobin commented on GitHub (Jun 21, 2023): Same error and conditions here. I do see the following in the Docker log, however: PineconeClient: Error calling describeIndex: 404: Not Found [PineconeError: PineconeClient: Error calling describeIndex: 404: Not Found]
Author
Owner

@jkrobin commented on GitHub (Jun 22, 2023):

My "Could not send chat" error was resolved after I found that my free OpenAI trial credits had expired. Once I set up a paid account on OpenAI the issue was resolved.

@jkrobin commented on GitHub (Jun 22, 2023): My "Could not send chat" error was resolved after I found that my free OpenAI trial credits had expired. Once I set up a paid account on OpenAI the issue was resolved.
Author
Owner

@argondigitalmoen commented on GitHub (Jun 22, 2023):

thank you for the tip, @frasergr . That helped me troubleshoot the problem and eventually solve it. I think I had multiple things going on.

For future people that might come here, my error could've been resolved by several changes.

  1. The cp command doesn't work for me, and I need to use "copy" instead. So, in the package.json file, I updated one line to: "setup:envs": "copy /Y .\server\.env.example .\server\.env.development && copy /Y .\collector\.env.example .\collector\.env && copy /Y .\docker\.env.example .\docker\.env && echo "All ENV files copied!"",
  2. Anywhere else it mentions cp in instructions, I just typed copy instead
  3. I uninstalled Python from the Windows apps and went to https://www.python.org/downloads/ to reinstall it. When reinstalling, I checked the PATH option. Also, I selected custom install to make sure it got installed for all users. I also updated the save location to just C:/
  4. Also, in the server location, my env files didn't copy properly, so I just filled those in manually (Pinecone info, etc)
  5. And, I just reinstalled everything according to the various instructions. (Did a pip install pinecone-client, cd to anything-llm and did yarn install, then cd frontend && yarn install && cd ../server && yarn install, cd back to docker/, then docker-compose up -d --build, -m pip install virtualenv, then -mvirtualenv v-env, then source v-env/bin/activate, then pip install -r requirements.txt, then copy .env.example .env)

For anyone with this issue, if you're open to hosting it remotely, I found the AWS setup and instructions (with a bit of help from ChatGPT on GPT4) to be much easier to implement. Plus, I like the idea of being able to share online access with others and not having to walk them through the local install themselves.

@argondigitalmoen commented on GitHub (Jun 22, 2023): thank you for the tip, @frasergr . That helped me troubleshoot the problem and eventually solve it. I think I had multiple things going on. For future people that might come here, my error could've been resolved by several changes. 1. The cp command doesn't work for me, and I need to use "copy" instead. So, in the package.json file, I updated one line to: "setup:envs": "copy /Y .\\server\\.env.example .\\server\\.env.development && copy /Y .\\collector\\.env.example .\\collector\\.env && copy /Y .\\docker\\.env.example .\\docker\\.env && echo \"All ENV files copied!\"", 2. Anywhere else it mentions cp in instructions, I just typed copy instead 3. I uninstalled Python from the Windows apps and went to https://www.python.org/downloads/ to reinstall it. When reinstalling, I checked the PATH option. Also, I selected custom install to make sure it got installed for all users. I also updated the save location to just C:/ 4. Also, in the server location, my env files didn't copy properly, so I just filled those in manually (Pinecone info, etc) 5. And, I just reinstalled everything according to the various instructions. (Did a pip install pinecone-client, cd to anything-llm and did yarn install, then cd frontend && yarn install && cd ../server && yarn install, cd back to docker/, then docker-compose up -d --build, -m pip install virtualenv, then -mvirtualenv v-env, then source v-env/bin/activate, then pip install -r requirements.txt, then copy .env.example .env) For anyone with this issue, if you're open to hosting it remotely, I found the AWS setup and instructions (with a bit of help from ChatGPT on GPT4) to be much easier to implement. Plus, I like the idea of being able to share online access with others and not having to walk them through the local install themselves.
Author
Owner

@IMCARLOSEHR commented on GitHub (Jun 22, 2023):

@argondigitalmoen I followed all the steps except #5.

I will do that later and update if it worked but for now I am still getting the "Could not send" error.

However, if you could link to the AWS setup, if it is easier I am all for it.

@IMCARLOSEHR commented on GitHub (Jun 22, 2023): @argondigitalmoen I followed all the steps except #5. I will do that later and update if it worked but for now I am still getting the "Could not send" error. However, if you could link to the AWS setup, if it is easier I am all for it.
Author
Owner

@IMCARLOSEHR commented on GitHub (Jun 22, 2023):

@jkrobin

While copying and pasteing errors into GPT, it seems to suggest it's something to do with Pinecone

@IMCARLOSEHR commented on GitHub (Jun 22, 2023): @jkrobin While copying and pasteing errors into GPT, it seems to suggest it's something to do with Pinecone
Author
Owner

@argondigitalmoen commented on GitHub (Jun 22, 2023):

@IMCARLOSEHR check the AWS folder in anything-llm, it lays out the steps there.

If you followed any part of steps 1 through 4, you would definitely still need to do at least part of #5, because otherwise it wouldn't be updated. If you did all of them, follow the Read Me instructions from the beginning essentially.

I would avoid step #1 though unless you ran the "docker logs anything-llm" command prompt mentioned in the previous response by @frasergr got you an error related to cp not being a valid command or not understood.

@argondigitalmoen commented on GitHub (Jun 22, 2023): @IMCARLOSEHR check the AWS folder in anything-llm, it lays out the steps there. If you followed any part of steps 1 through 4, you would definitely still need to do at least part of #5, because otherwise it wouldn't be updated. If you did all of them, follow the Read Me instructions from the beginning essentially. I would avoid step #1 though unless you ran the "docker logs anything-llm" command prompt mentioned in the previous response by @frasergr got you an error related to cp not being a valid command or not understood.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/anything-llm#60
No description provided.