subzeroid / instagrapi-rest

RESTful API Wrapper for Instagram Private API
https://hikerapi.com/p/ygXxF38v
MIT License
499 stars 128 forks source link

[BUG] Adding mentions returns 422 #51

Open gobboo opened 1 year ago

gobboo commented 1 year ago

Describe the bug Whenever I send

[
    {
        'user': { 'pk': 'PK' }
    }
]

As mentions on the /video/upload_to_story/by_url it returns a 422 stating that {'detail': [{'loc': ['body', 'mentions', 0], 'msg': 'value is not a valid dict', 'type': 'type_error.dict'}]}

When infact it's a dict, I've even checked the SRC to verify if my data is correct and it seems like its 100% correct, even the OpenAPI doc has an error when I fill it out.

To Reproduce Try using mentions on the OpenAPI spec, it'll return a 422

Desktop (please complete the following information):

adw0rd commented 1 year ago

I don't have time for that right now, you can try my service https://api.lamadava.com and if there are problems I will help.

Or send here your solution to the problem in the form of a PR