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

Why is it saying method not allowed? #25

Open
mosh98 opened this issue May 31, 2024 · 6 comments
Open

Why is it saying method not allowed? #25

mosh98 opened this issue May 31, 2024 · 6 comments

Comments

@mosh98
Copy link

mosh98 commented May 31, 2024

mosleh@Moslehs-MacBook-Pro organize % curl -X POST http://127.0.0.1:8000 -H "Content-Type: application/json" -d '{"path": "/Users/mosleh/Downloads/", "instruction": "organize", "incognito": true}'
{"detail":"Method Not Allowed"}%

Ollama running in the background

@JohnOstrowick
Copy link

me too.

@ceaserone
Copy link

ceaserone commented Jun 2, 2024

File system permissions?
Is your python running newest?

@bgruszka
Copy link

bgruszka commented Jun 3, 2024

You have to add /batch or /watch in URL, i.e.: http://127.0.0.1:8000/batch

@Jaron-Wilson
Copy link

Jaron-Wilson commented Jun 3, 2024

You have to add /batch or /watch in URL, i.e.: http://127.0.0.1:8000/batch

Will try, also was about to ask when I refreshed and saw your comment

Edit: it works, but if there's no files then it will spit an error

@deacon-mp
Copy link

deacon-mp commented Jun 3, 2024

`INFO: Will watch for changes in these directories: ['/Users//Documents/llama-fs']

INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)

INFO: Started reloader process [25668] using WatchFiles

INFO: Started server process [25672]

INFO: Waiting for application startup.

INFO: Application startup complete.

**INFO: 127.0.0.1:55355 - "GET /batch HTTP/1.1" 405 Method Not Allowed

INFO: 127.0.0.1:55356 - "GET /watch HTTP/1.1" 405 Method Not Allowed`**

@JohnOstrowick
Copy link

ok, curl -X POST http://127.0.0.1:8000/batch -H "Content-Type: application/json" -d '{"path": "/home/john/Downloads/", "instruction": "organize", "incognito": true}'

seemed to work. However, I would need to give it some useful documents to check.

also https://github.com/iyaja/llama-fs says we must use fastapi but I found it runs if you use 'uvicorn' instead... couldn't get fastapi to work/install/run.

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

6 participants