Not able to use Shares API

I am using the docker version of Seafile, which I locally installed, and I am trying to share a repo with rw permission, but I straight away get Internal Server Error, I did check the seafile.log file, but it did not help.

This is the endpoint I am using

http://localhost/api/v2.1/admin/shares

this is request body

{
  "repo_id": "a24a9eef-be38-48d5-b812-dc712d8ffaf1",
  "share_type": "user",
  "permission": "rw",
  "share_to": "aaab1bb@aaabbb.com"
}

Can someone please guide me, where shall I look next, so that I can understand what exactly is happening here.

Thanks for your help.