Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fractaldna22 opened this issue Oct 5, 2023 · 21 comments
Labels
bug Something isn't working question Further information is requested

Comments

@fractaldna22
Copy link

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

@JE-Chen
Copy link
Member

JE-Chen commented Oct 5, 2023

Look #17

@JE-Chen JE-Chen added the question Further information is requested label Oct 5, 2023
@fractaldna22
Copy link
Author

fractaldna22 commented Oct 5, 2023 via email

@JE-Chen
Copy link
Member

JE-Chen commented Oct 6, 2023

Can you use EdgeGPT now ?

@fractaldna22
Copy link
Author

fractaldna22 commented Oct 6, 2023 via email

@fractaldna22
Copy link
Author

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
    }
}

@fractaldna22
Copy link
Author

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

@JE-Chen
Copy link
Member

JE-Chen commented Oct 6, 2023

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).

@JE-Chen
Copy link
Member

JE-Chen commented Oct 6, 2023

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
    }
}

@JE-Chen
Copy link
Member

JE-Chen commented Oct 6, 2023

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

@JE-Chen
Copy link
Member

JE-Chen commented Oct 6, 2023

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

@fractaldna22
Copy link
Author

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.

@fractaldna22
Copy link
Author

fractaldna22 commented Oct 6, 2023

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

image

@fractaldna22
Copy link
Author

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!

@JE-Chen JE-Chen added bug Something isn't working and removed question Further information is requested labels Oct 6, 2023
@JE-Chen
Copy link
Member

JE-Chen commented Oct 6, 2023

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

@JE-Chen
Copy link
Member

JE-Chen commented Oct 6, 2023

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.

@1nv4510n
Copy link

1nv4510n commented Oct 6, 2023

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

@JE-Chen
Copy link
Member

JE-Chen commented Oct 6, 2023

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

@fractaldna22
Copy link
Author

fractaldna22 commented Oct 6, 2023 via email

@fractaldna22
Copy link
Author

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

@fractaldna22
Copy link
Author

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

@JE-Chen JE-Chen added the wontfix This will not be worked on label Oct 13, 2023
@JE-Chen
Copy link
Member

JE-Chen commented Oct 25, 2023

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]:

@JE-Chen JE-Chen added question Further information is requested and removed wontfix This will not be worked on labels Oct 25, 2023
@JE-Chen JE-Chen closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants