openwallet-foundation / acapy-endorser-service

endorser-service
https://wiki.hyperledger.org/display/aries
Apache License 2.0
6 stars 11 forks source link

Restore uploading empty csv files for allow lists #157

Closed Gavinok closed 1 month ago

Gavinok commented 1 month ago

broken in commit 61ef1a637c4eecb85a361606bdfb4cb66ec6b3c2

Uploading an empty file results in this error

{  "detail": [    {      "type": "value_error",      "loc": [        "body",        "publish_did"       ],      "msg": "Value error, Expected UploadFile, received: <class 'str'>",      "input": "",      "ctx": {        "error": {}      }    },    {      "type": "value_error",      "loc": [        "body",        "schema"       ],      "msg": "Value error, Expected UploadFile, received: <class 'str'>",      "input": "",
      "ctx": {
        "error": {}
      }
    }
  ]
}
Gavinok commented 1 month ago

https://github.com/fastapi/fastapi/discussions/11822 seems to be the source