Inzaniak / sd-webui-ranbooru

71 stars 7 forks source link

[bug] Using gelbooru, KeyError: 'post' #34

Closed ElizaPottinger closed 4 months ago

ElizaPottinger commented 5 months ago

Hey, when I use multiple search terms with gelbooru I am getting this message in the CLI and nothing is added to the prompt.

Using gelbooru https://gelbooru.com/index.php?page=dapi&s=post&q=index&json=1&limit=100&pid=70&tags=-animated+1girl+hug+pov *** Error running before_process: E:\Stability Matrix\Data\Packages\Stable Diffusion WebUI Forge\extensions\sd-webui-ranbooru\scripts\ranbooru.py Traceback (most recent call last): File "E:\Stability Matrix\Data\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 795, in before_process script.before_process(p, *script_args) File "E:\Stability Matrix\Data\Packages\Stable Diffusion WebUI Forge\extensions\sd-webui-ranbooru\scripts\ranbooru.py", line 654, in before_process for post in data['post']: KeyError: 'post'

image image

rktvr commented 4 months ago

it means you have too many pages selected. you have to turn this setting down until it returns search results: image

ElizaPottinger commented 4 months ago

Awesome. Thanks for the reply!