Integration-Automation/ReEdgeGPT

KeyError: 'conversationSignature' -- is the wss://sydney resource killed?

fractaldna22 opened this issue · 21 comments

File "C:\Users\psych\AppData\Local\Programs\Python\Python311\Lib\site-packages\re_edge_gpt\re_edge_gpt.py", line 23, in __init__
  self.chat_hub: ChatHub = ChatHub(
                           ^^^^^^^^
File "C:\Users\psych\AppData\Local\Programs\Python\Python311\Lib\site-packages\re_edge_gpt\chathub.py", line 47, in __init__
  conversation_signature=conversation.struct["conversationSignature"],
                         ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'conversationSignature'

Get this on both EdgeGPT and ReEdgeGPT. my bot comradeGPT on discord which was the best bot is no longer working i have no idea what to do

Look #17

Can you use EdgeGPT now ?

it worrrks

image

actually no..

image

i manually entered the conversation ID from the link you posted but it
doesnt work for chat.. but image creator did work for the first time since
dalle3 came out so thats a start.

There's actually no conversationSignature on the link https://edgeservices.bing.com/edgesvc/turing/conversation/create
only

{
    "conversationId": "<value>",
    "clientId": "<value>",
    "result": {
        "value": "Success",
        "message": null
    }
}

i did get a bunch of past conversationSignatures on this but i have no idea how to use this https://www.bing.com/turing/conversation/chats

Can't use old conversationSignatures,
Every chat have specific conversationSignatures,
Sometime no conversationSignatures is microsoft server problem,
Sometime no conversationSignatures it's mean microsoft block you (I don't know how long).

Until this link https://edgeservices.bing.com/edgesvc/turing/conversation/create have conversationSignatures
And like this json then you can use EdgeGPT

{
    "conversationSignatures": "<value>",
    "conversationId": "<value>",
    "clientId": "<value>",
    "result": {
        "value": "Success",
        "message": null
    }
}

I will PR try to fix this wait me 0.5 ~ 2 hr

@fractaldna22 Update your ReEdgeGPT and make sure version is re_edge_gpt 0.0.7 then try again

ok i will try that. I tried manually inputting the values of the last conversation on that page and it wasnt responding to chats, but it was responding to buttons..

image
XD

I have the Windows 11 Copilot by the way and bing works everywhere else so i dont think microsoft blocked me but im going to update this and try again, thanks for helping.

ill let you know shortly.

chat now works! but now image creator doesnt work. redirect fail, and also in chat..
image

image

no rush. if this is all that works for now, im happy with just chat. Image creator just might be down again on the website, i havent checked yet. Thanks again!

I think it's bing's DALL-E3 problem
image
image

Only happend on async image generation, you can use thread and queue to process sync image generation like async.
I need to check why asnyc will block request.

for me image gen works well, but when they released dalle 3 you have to wait for a long time

Yes new DALL-E3 bing image gen take long time,
And we need waiting image gen done,
Then we can generate next image,
Can't generate multi image on same time now (Have limit),
If image gen problem is bing's problem,
I can't do anything.

https://www.bing.com/create

but it did work right the first time yesterday while chat wasnt working
image

in the past i know that when dalle 3 is slow, the images are still on the creations page. but now if it says this

image

theres no new images on the creation page for these

maybe it was just bad luck. ill try again manually directly in vscode today.

Still can't generate multi image on same time (Bing block), so if image still creating or cookie out of date, re_edge_gpt will return None
and print

Image create failed pls check cookie or old image still creating

Like this:
image

def get_images(self, prompt: str) -> Union[list, None]: