I was trying to customize the KitsuAddon to suit my studio’s needs.
Problem is, whenever I try to send any POST request, All kinds of errors appear (uvloop is one of the errors).
I tried to send data in body, query, even in the url path, but nothing seems to work.
When I debug and test the request syntax with a third party IDE, everything works just fine.
seems like there is a problem with the ayon_server built-in httpx module.
What am I supposed to do so I can send the data properly?
I believe endpoints must return either fastapi.Response or a subclass of pydantic.BaseModel (or ayon_server.types.OPModel the response from httpx is a plain dict and fastapi tries to call the dict() method of the response
If I haven’t read the Fastapi docs already I wouldn’t have tried editing the code.
problem isn’t with getting the response, my problem is in sending data in the post request, which raises an error
with data httpx sends the payload urlencoded, while with json its dumps the payload to a json string and sends appropriate Content-Type: application/json header