How To Fix Stable Diffusion Error Completing Request

Stable Diffusion is the best technology that provides an excellent opportunity to convert text into images.

It is an open-source tool accessible for both Windows and Mac OS.

You can create your Image just by giving a command in the text format.

However, users face the issue while trying to convert the text to an image, and they try to process the command, they getting the following error. “Error completing request”.

The error usually occurs if there is any argument error in the given command.

In this Article, You will understand why an Error Completing Request occurs and the reason behind it.

Why Does Completing Request Error Occur In Stable Diffusion?

stable diffusion error completing request

The Completing request Error occurs, meaning the input command line creates an empty depth map because the preceding check fails.

Usually, the error occurs during 

  • Generating any image
  • Sending to Extras
  • Picking a more upscale
  • Clicking Generate
  • Nothing happens. No “loading” in the output and no error in the terminal.

How To Fix Stable Diffusion Error Completing Request

First, go through the error and follow any fixes specified in the error message.

The steps differ from Request to Request. So first, follow the directions in the error message and see if the error is fixed.

If the direction leads to another error message, follow the troubleshooting below.

1. Uncheck All Installed Extensions

Try to run the script by unchecking all personally installed extensions.

 It’s common for auto to break when an extension is updated and doesn’t match the latest commit.

You can use Tab Hider to disable the extensions.

  • Click here to learn more about Tabhider.
  • Go to the extension tab and uncheck all extensions.

Now try to create an image by inputting the quick script or Command.

2. Select CPU For Compute In The Script Option

You can either Give GPU or CPU in the script option.

Instead of Giving the GPU, try generating the Image with CPU mode in the script.

3. Modify The Bat File In The Stable Diffusion Folder

Adding a command line argument in the Webui-user.bat file will fix the issue.

  • Find and Locate the Webui-user.bat file
  • Add the following line at the end of the file: –no-half”
  • Save the file and Relaunch the Stable diffusion application again.

Now you can process the Image without any issues. 

If the error persists, try removing the Jason file.

4. Remove The Config.json File From Stable Diffusion Folder

Usually, the error occurs during Text to Image command processing in the Stable Diffusion, and you will get empty output.

  • Try to remove or delete the Config.json file
  • Close the Stable Diffusion file and Restart your PC.
  • Now launch your stable diffusion file and try generating a new image.

Repeat the above step if you get the error again by removing ui-config.json. Now you can successfully generate the Image without any mistakes.

5. Check Your Python File Version

If the error persists, check your Python file version.

Even though users are recommended to use the latest Python version, Python 3.10.6 will help you to eliminate unknown command line argument errors.

  • Downgrade or upgrade the Python to 3.10.6 according to your installed version
  • Go to Webui-user.bat and find the lineSet PYTHON =python
  • Replace the Python with the Python file path.

Example: set PYTHON=B:\soft\Python310\python.exe

  • Save the file and relaunch stable Diffusion.

Now try to generate the Image and see if the error is gone.

6. Modify The Xformers File

There is a bug with the xformers 0.0.18 version

Downgrade the formers file to 0.0.17 if you have updated it. 

  • Open CMD
  • Navigate to the folder venv/scripts
  • Run the following command

 venv pip uninstall xformers

 pip install xformers==0.0.17

  • Relaunch the application and see if the error is gone.

If none of the above methods works, you need to delete and reinstall the Stable diffusion file.

Make sure you are using the Python 3.10.6 version while fresh new installation.