Skip to content

docker部署的,请求返回错误 #39

@maxbad

Description

@maxbad

curl:

curl -X 'POST' \
  'http://127.0.0.1:18111/ocr' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'file=@1000-1cef7722-a8e2-492f-b1f8-7d397e288c28.gif;type=image/gif' \
  -F 'image=' \
  -F 'probability=false' \
  -F 'charsets=' \
  -F 'png_fix=false'

返回的错误是

{
  "code": 500,
  "message": "'UploadFile' object has no attribute 'size'",
  "data": null
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions