exadel-inc / exadel-inc/CompreFace
{ "message" : "Required part file is missing", "code" : 34 }
- Dominant language
- Java
- Stars
- 8.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When attempting to make a curl request in terminal I get the following response:
```
{
"message" : "Required part file is missing",
"code" : 34
}
```
**To Reproduce**
Steps to reproduce the behavior:
run this in a terminal:
`curl -X POST http://localhost:8000/api/v1/recognition/recognize -H "x-api-key: 6b9cca31-a5fe-xxxx-xxxx-6373513a1f83" -H "Content-Type: multipart/form-data" -F file=person_1.jpg`
What am I doing wrong? I am trying to implement this API call in Python and am getting a 400 instead of a 200 and a result.
Contributor guide
Research direction
Start by reproducing the documented curl request against the /api/v1/recognition/recognize endpoint and inspect how the service handles the multipart upload. Compare the request with the API’s expected file input and verify the behavior from the terminal. Done means the same recognition request returns HTTP 200 with a result instead of HTTP 400.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100