FuseFairy / DiscordBot-EdgeGPT

Using Copilot, Bing Image Creator and DALLE-3 on Discord bot.
GNU General Public License v2.0
160 stars 41 forks source link

ERROR src.imageCreate -> Error while create image: Redirect failed #100

Closed BuGz91 closed 12 months ago

BuGz91 commented 1 year ago

I give this error in terminal, when i want to a generate a image:

Traceback (most recent call last): File "/home/pi/BING/src/imageCreate.py", line 20, in create_image images = await image_generator.get_images(prompt) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/.local/lib/python3.11/site-packages/BingImageCreator.py", line 312, in get_images raise Exception("Redirect failed") Exception: Redirect failed

FuseFairy commented 1 year ago

Update BingImageCreator or try update cookies again

pip install BingImageCreator --upgrade
BuGz91 commented 1 year ago

I change the cookies, and have the last version of BingImageCreator: pip install BingImageCreator --upgrade Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: BingImageCreator in /home/pi/.local/lib/python3.11/site-packages (0.5.0) Requirement already satisfied: httpx in /home/pi/.local/lib/python3.11/site-packages (from BingImageCreator) (0.24.1) Requirement already satisfied: regex in /home/pi/.local/lib/python3.11/site-packages (from BingImageCreator) (2023.8.8) Requirement already satisfied: requests in /home/pi/.local/lib/python3.11/site-packages (from BingImageCreator) (2.31.0) Requirement already satisfied: certifi in /home/pi/.local/lib/python3.11/site-packages (from httpx->BingImageCreator) (2023.7.22) Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in /home/pi/.local/lib/python3.11/site-packages (from httpx->BingImageCreator) (0.17.3) Requirement already satisfied: idna in /home/pi/.local/lib/python3.11/site-packages (from httpx->BingImageCreator) (3.4) Requirement already satisfied: sniffio in /home/pi/.local/lib/python3.11/site-packages (from httpx->BingImageCreator) (1.3.0) Requirement already satisfied: charset-normalizer<4,>=2 in /home/pi/.local/lib/python3.11/site-packages (from requests->BingImageCreator) (3.2.0) Requirement already satisfied: urllib3<3,>=1.21.1 in /home/pi/.local/lib/python3.11/site-packages (from requests->BingImageCreator) (1.26.16) Requirement already satisfied: h11<0.15,>=0.13 in /home/pi/.local/lib/python3.11/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->BingImageCreator) (0.14.0) Requirement already satisfied: anyio<5.0,>=3.0 in /home/pi/.local/lib/python3.11/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->BingImageCreator) (3.7.1)

And the same error: ERROR src.imageCreate -> Error while create image: Redirect failed Traceback (most recent call last): File "/home/pi/BING/src/imageCreate.py", line 20, in create_image images = await image_generator.get_images(prompt) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/.local/lib/python3.11/site-packages/BingImageCreator.py", line 312, in get_images raise Exception("Redirect failed") Exception: Redirect failed

FuseFairy commented 1 year ago

Emmm, l'm not sure what going run, try vpn or use another account cookies. I will keep looking for a solution.

FuseFairy commented 12 months ago

Update new version, the problem was solved