segment-anything-webui icon indicating copy to clipboard operation
segment-anything-webui copied to clipboard

INFO: 127.0.0.1:9968 - "POST /api/box HTTP/1.1" 422 Unprocessable Entity

Open biaggii opened this issue 2 years ago • 6 comments

INFO: 127.0.0.1:9968 - "POST /api/box HTTP/1.1" 422 Unprocessable Entity

biaggii avatar Apr 18 '23 16:04 biaggii

more info needed to debug, such as shell output from both server.py and node.js, the image that uploads

Kingfish404 avatar Apr 20 '23 13:04 Kingfish404

got same error INFO: 127.0.0.1:3938 - "POST /api/point HTTP/1.1" 422 Unprocessable Entity

server.py

(meta) PS C:\Users\ZME\AI\segment-anything-webui> python scripts/server.py
device: cuda
100%|███████████████████████████████████████| 335M/335M [04:53<00:00, 1.20MiB/s]
INFO:     Started server process [5912]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO:     127.0.0.1:3938 - "POST /api/point HTTP/1.1" 422 Unprocessable Entity
INFO:     127.0.0.1:3938 - "POST /api/point HTTP/1.1" 422 Unprocessable Entity

node.js

(base) PS C:\Users\ZME\AI\segment-anything-webui> npm run dev

> [email protected] dev
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

event - compiled client and server successfully in 1612 ms (170 modules)
wait  - compiling...
event - compiled successfully in 76 ms (137 modules)
wait  - compiling / (client and server)...
event - compiled client and server successfully in 123 ms (183 modules)
wait  - compiling /_error (client and server)...

bensonbs avatar Apr 27 '23 04:04 bensonbs

got same error INFO: 127.0.0.1:3938 - "POST /api/point HTTP/1.1" 422 Unprocessable Entity

server.py

(meta) PS C:\Users\ZME\AI\segment-anything-webui> python scripts/server.py
device: cuda
100%|███████████████████████████████████████| 335M/335M [04:53<00:00, 1.20MiB/s]
INFO:     Started server process [5912]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO:     127.0.0.1:3938 - "POST /api/point HTTP/1.1" 422 Unprocessable Entity
INFO:     127.0.0.1:3938 - "POST /api/point HTTP/1.1" 422 Unprocessable Entity

node.js

(base) PS C:\Users\ZME\AI\segment-anything-webui> npm run dev

> [email protected] dev
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

event - compiled client and server successfully in 1612 ms (170 modules)
wait  - compiling...
event - compiled successfully in 76 ms (137 modules)
wait  - compiling / (client and server)...
event - compiled client and server successfully in 123 ms (183 modules)
wait  - compiling /_error (client and server)...

Which version of the Node and Python

Kingfish404 avatar Apr 27 '23 05:04 Kingfish404

Node.js v19.2.0 python 3.9.16

bensonbs avatar Apr 27 '23 05:04 bensonbs

Same Error , any progress? Node.js v18.17.1 Python 3.10.11

wizardpisces avatar Mar 22 '24 03:03 wizardpisces

Unfortunately, I can't reproduce this issue (Linux, macOS, Windows 11). It is recommended to use docker to start the project, or provide a docker image that could reproduce this issue.

Kingfish404 avatar Mar 26 '24 09:03 Kingfish404