You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using the Api key and the user_id to log into danbooru will not work
the error:
Traceback (most recent call last):
File "test.py", line 10, in
asyncio.run(main())
File "C:\anaconda\envs\bot\lib\asyncio\runners.py", line 43, in run
return loop.run_until_complete(main)
File "C:\anaconda\envs\bot\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "test.py", line 6, in main
res = await dan.search(query="cat_girl", limit=1)
File "C:\anaconda\envs\bot\lib\site-packages\booru\client\danbooru.py", line 130, in search
self.not_random = Danbooru.append_obj(self.final)
File "C:\anaconda\envs\bot\lib\site-packages\booru\client\danbooru.py", line 38, in append_obj
if "id" in raw_object[i]:
KeyError: 0
To Reproduce
Intitialize Danbooru exactly like the documentation instructs.
using the username or number only user ID will not work
Gelbooru works however
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
OS: Windows with Anaconda
3.8.5
Additional context
The text was updated successfully, but these errors were encountered:
Hi, thanks for reporting and fixed already. It is because danbooru:docs required parameter login instead user_id
also i have tests stuff without api auth so login properties may not same it all, If you encounter this misleading in another booru please open an issue again
Describe the bug
Using the Api key and the user_id to log into danbooru will not work
the error:
Traceback (most recent call last):
File "test.py", line 10, in
asyncio.run(main())
File "C:\anaconda\envs\bot\lib\asyncio\runners.py", line 43, in run
return loop.run_until_complete(main)
File "C:\anaconda\envs\bot\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "test.py", line 6, in main
res = await dan.search(query="cat_girl", limit=1)
File "C:\anaconda\envs\bot\lib\site-packages\booru\client\danbooru.py", line 130, in search
self.not_random = Danbooru.append_obj(self.final)
File "C:\anaconda\envs\bot\lib\site-packages\booru\client\danbooru.py", line 38, in append_obj
if "id" in raw_object[i]:
KeyError: 0
To Reproduce
Intitialize Danbooru exactly like the documentation instructs.
using the username or number only user ID will not work
Gelbooru works however
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: