sydney.py: sydney.exceptions.CreateConversationException: Failed to create conversation, received status: 404

i got this error, its weird that i have 404 error code for accessing copilot in python. It was fine few days ago and i dont really use bing chat that much. I’ve tried to switch account (and also changing the cookie) but still got the error

image

if i go to copilot myself, its all 100% fine. here is my code (same as in the page description)

import asyncio

from sydney import SydneyClient
import os, json

with open("credentials.json") as file:
    credentials = json.load(file)

os.environ["BING_COOKIES"] = credentials["cookie"]


async def main() -> None:
    async with SydneyClient() as sydney:
        while True:
            prompt = input("You: ")

            if prompt == "!reset":
                await sydney.reset_conversation()
                continue
            elif prompt == "!exit":
                break

            print("Sydney: ", end="", flush=True)
            async for response in sydney.ask_stream(prompt):
                print(response, end="", flush=True)
            print("\n")


if __name__ == "__main__":
    asyncio.run(main())

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Hi everyone!

I’ve released v0.20.1 which contains a bunch of fixes. Looks like the API for Copilot had changed a bit (different headers, URLs and bundle versions), so I changed those to improve the compatibility.

I ran the test suite locally using cookies from a logged in account, also on Github without cookies and it worked fine in both scenarios.

It is possible that something might be missing, but let me know if you see any changes with the latest version.

Thanks!! now its all working. altho sometime i have to check the captcha manually but i dont really mind.

Hello @vsakkas, it’s working without cookie with your last version. I no longer have the 404 error.

Thank you !