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

Not working anymore. ConversationSignature not returned #484

Open
mrcferri opened this issue Oct 5, 2023 · 5 comments
Open

Not working anymore. ConversationSignature not returned #484

mrcferri opened this issue Oct 5, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@mrcferri
Copy link

mrcferri commented Oct 5, 2023

Everything worked smoothly until yesterday. I had a couple of projects running and both stopped working at the same time.
A bit of debugging revealed that when creating a new conversation the response doesn't contain a conversationSignature and an exception is thrown (line 203 of BingAIClient.js).
Any idea? I suspect something changed on Bing and/or OpenAI side...
Thanks,
Marco

@mrcferri mrcferri added the bug Something isn't working label Oct 5, 2023
@harryeffinpotter
Copy link

How did you get this error? How do you debug it? I am semi-new to node and all I get is a timeout error, I'd like to see if our errors are the same. What cookie/token are you using? I saw some metion using other cookies but I have no idea how to go about it;.

@harryeffinpotter
Copy link

Interestingly enough - I got some responses from the bot, but sparingly. https://bin.wizardrysoftwaresolutions.com/u/08rwmz.jpg

@mrcferri
Copy link
Author

mrcferri commented Oct 5, 2023

@harryeffinpotter To debug I use Visual Studio. It used to work with the user token (_U cookie). On failure I tried also to provide all Bing cookies to no avail. This is the debug output, just before the exception:

{
  conversationId: '51D|BingProd|9DA70F50D679FEE0C91F081A07D7DCCC4ADF946CE04399477F12708686E2AE07',
  clientId: '844426658913453',
  result: { value: 'Success', message: null }
}

As you can see a conversationSignature field is missing and that's what the following code (lines 196-206 of BingAIClient.js) checks before throwing the exception:

if (!createNewConversationResponse.conversationSignature
    || !createNewConversationResponse.conversationId
    || !createNewConversationResponse.clientId) {
    const resultValue = createNewConversationResponse.result?.value;
    if (resultValue) {
        const e = new Error(createNewConversationResponse.result.message); // default e.name is 'Error'
        e.name = resultValue; // such as "UnauthorizedRequest"
        throw e;
    }
    throw new Error(`Unexpected response:\n${JSON.stringify(createNewConversationResponse, null, 2)}`);
}

Strangely enough the result.value says "Success"

@mrcferri
Copy link
Author

mrcferri commented Oct 6, 2023

Ok, problem solved applying pull request at #481 as suggested in #470.

@mrcferri mrcferri closed this as completed Oct 6, 2023
@waylaidwanderer
Copy link
Owner

Please keep this issue open for now as the problem isn't fixed until the PR is merged. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants