[Extension]: sd-webui-agent-scheduler fails when posting a txt2img queue API request #3680
Closed
1 task done
Labels
extension
Extension is not working correctly
Issue Description
Issue
When sending a txt2img request to the agent scheduler API endpoint (
/agent-scheduler/v1/queue/txt2img
), the request will fail with the error messageAttributeError: 'ResTxt2Img' object has no attribute 'override_settings'
.I have not tested this with the img2img endpoint, but I assume it would produce the same result.
Steps to Reproduce
--docs
argument.docs
endpoint by navigating tohttp://127.0.0.1:7860/docs
/agent-scheduler/v1/queue/txt2img
Expected Behavior
The request should be added to the image generation queue.
Actual Behavior
The console will show that the request fails with the error
AttributeError: 'ResTxt2Img' object has no attribute 'override_settings'
.Log Excerpt
Root Cause
This occurs because of the SD.Next API refactor (#2814), which changed the
override_settings
property of theResImg2Img
andResTxt2Img
classes toparameters
.Partial Workaround
Changing
override_settings
toparameters
inextensions-builtin/sd-webui-agent-scheduler/agent_scheduler/task_runner.py
andextensions-builtin/sd-webui-agent-scheduler/agent_scheduler/task_helpers.py
allows you to add requests to the queue as expected.Further Issues
Doing this will then cause the processing of those requests to fail with the error
[AgentScheduler] Task 59a4dd21-df67-4e4d-87bf-4440eec439e9 failed: 'Api' object has no attribute 'text2imgapi'
. This is because the static methodtext2imgapi
was removed frommodules/api/api.py -> class Api
in the API refactor.Example log excerpt after changing
override_settings
toparameters
:Version Platform Description
Environment
Platform
Packages
Args
['--data-dir', 'F:\\ai\\stable-diffusion\\sdnext-configs\\standard', '--listen', '--docs']
Torch overrides
CUDA
Extensions
URL link of the extension
https://github.com/ArtVentureX/sd-webui-agent-scheduler
URL link of the issue reported in the extension repository
SipherAGI/sd-webui-agent-scheduler#259
Acknowledgements
The text was updated successfully, but these errors were encountered: