YuzuRyo61 / Misskey.py

The Misskey API library for Python. Misskey is made by syuilo. 🐡( '-' 🐡 )hug punch!!!!
https://misskeypy.readthedocs.io/ja/latest/
MIT License
83 stars 7 forks source link

[Bug]incompatible with misskey 12.103.1? #92

Closed ghost closed 2 years ago

ghost commented 2 years ago

Immediately after updating my misskey instance to 12.103.1, the API is not working correctly. Trying to use drive_files_create() results in:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/misskey/bot/misskey/misskey.py", line 844, in drive_files_create
    raise MisskeyAPIException(response.json())
  File "/home/misskey/bot/misskey/exceptions.py", line 24, in __init__
    self.__code = response_dict['error']['code']
KeyError: 'code'

I can still use other functions such as create_note() it seems only drive upload is affected? (I don't really know whether this is a bug with misskey.py or the API)

ghost commented 2 years ago

sorry, I figured out some things and just want to add more information the API call here changed due to this refactor: https://github.com/misskey-dev/misskey/commit/f2b40b51c2d631a6185e1c4614632d29c40bce6c

this endpoint in particular has changed a bit so that's why this call is failing, but all other calls seem ok. Sorry for my lack of information! This is all a bit over my head

YuzuRyo61 commented 2 years ago

Hello n4ello.

As I confirmed here, it is a fact that there is a bug in Misskey.py. Some of the content has been corrected, but the essential parts have not been corrected yet. We will continue to investigate.

Thank you for reporting.

YuzuRyo61 commented 2 years ago

The cause has been determined and will be fixed in the next release. thank you.

ghost commented 2 years ago

wow that was fast! thank you so much m( )m