-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
API triggered document ingestion on Windows causes permission error #1227
Comments
Thanks for suggesting the fix, I will open a PR with it. |
Unfortunately, the branch does not resolve the issue. Here's a copy of the console output I get when I interact via the API
If I add a |
interesting, maybe the issue is caused by the path lib and works fine with a regular close |
When running locally on a Windows 11 machine, I am able to interact with the UI and upload files without issue.
However, when I attempt to connect to the server via another application using the API ingestion endpoint
/v1/ingest
I am seeing a permissions issue with the temporary file that's created to facilitate the ingestion. A snippet of the error:Here is the demo code that I'm using to exercise the API. This is running on the node side of a next.js app.
I am able to correct this issue locally if I make the following change, which I believe is due to the way that python requisitions temporary files on a Windows machine. The change is made in the
/private_gpt/server/ingest/ingest_service.py
file.Current:
Updated:
I'm sure there are other implications to this change, and this is likely not a complete solution, but I wanted to at least get this issue tracked if this can help anyone else.
The text was updated successfully, but these errors were encountered: