Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when i upload file, it tells me 'Error save file failed:, e0dd8b40-eaa4-47e7-8eb4-88d5caa483b3.'(run locally) #94

Open
PuPuuu opened this issue Jun 26, 2023 · 9 comments

Comments

@PuPuuu
Copy link

PuPuuu commented Jun 26, 2023

image
Repository owner deleted a comment from PuPuuu Jun 26, 2023
@guangzhengli
Copy link
Owner

Your image leaked your OpenAI key!!! I have deleted your images. Please try uploading again and attach an accurate error message.

@allentofight
Copy link

+1, the response is the following:

image

@allentofight
Copy link

local in Mac , change public/uploads to /tmp and it worked!

@PuPuuu
Copy link
Author

PuPuuu commented Jun 29, 2023

Your image leaked your OpenAI key!!! I have deleted your images. Please try uploading again and attach an accurate error message.

Thx, I have resolved this question by manually creating 'public/uploads' directory!
The reason is The program could not automatically create this directory, as for what caused it, I haven't read the code carefully, so I don't know the final reason

@PuPuuu
Copy link
Author

PuPuuu commented Jun 29, 2023

but i still have problems:
image

@PuPuuu
Copy link
Author

PuPuuu commented Jun 29, 2023

Is this error related to my proxy settings or the target url?

@PuPuuu
Copy link
Author

PuPuuu commented Jun 29, 2023

this is the response:
image

@learnerhouse
Copy link

local in Mac , change public/uploads to /tmp and it worked!

I got the same error, and i fix public/uploads to /tmp , that not works, from the network error : '400' , that same like the network error, I change the open ai base url to another url , maybe that is the key to solve the error . here is the error slots
image
image

@deltaLRD
Copy link

deltaLRD commented Oct 27, 2023

You can create a docker volume when deploy the project or manually create the folder when run locally.

version: '2.2'
services:
  chatfiles:
    image: guangzhengli/chatfiles:latest
    container_name: chatfiles
    ports:
      - 3000:3000
    environment:
      - OPENAI_TYPE=${OPENAI_TYPE}
      - OPENAI_API_KEY=${OPENAI_API_KEY}
      - AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY}
      - AZURE_OPENAI_API_DEPLOYMENT_NAME=${AZURE_OPENAI_API_DEPLOYMENT_NAME}
      - AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME=${AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME}
      - AZURE_OPENAI_API_INSTANCE_NAME=${AZURE_OPENAI_API_INSTANCE_NAME}
      - AZURE_OPENAI_API_VERSION=${AZURE_OPENAI_API_VERSION}
      - SUPABASE_SERVICE_ROLE_KEY=${SUPABASE_SERVICE_ROLE_KEY}
      - SUPABASE_URL=${SUPABASE_URL}
      - NEXT_PUBLIC_CHAT_FILES_UPLOAD_PATH=public/uploads
      - NEXT_PUBLIC_CHAT_FILES_MAX_SIZE=0
    volumes:
      - ./files:/app/public/uploads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants