acheong08 / EdgeGPT

Reverse engineered API of Microsoft's Bing Chat AI
The Unlicense
8.07k stars 909 forks source link

[Bug]: Exception: UnauthorizedRequest: Cannot retrieve user status. #618

Open xuanvuzzz2601 opened 1 year ago

xuanvuzzz2601 commented 1 year ago

Is there an existing issue for this?

What happened?

When I run EdgeGPT.EdgeGPT to test it gives an error. Exception: UnauthorizedRequest: Cannot retrieve user status. Someone, please help me fix this error

Steps to reproduce the problem

When I run EdgeGPT.EdgeGPT to test it gives an error

What should have happened?

This error may come from the hub being disconnected

Version where the problem happens

lastest

What Python version are you running this with?

3.8

What is your operating system ?

No response

Command Line Arguments

No

Console logs

Bot:
Traceback (most recent call last):
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "D:\Company\code\partner-profile-generator\src\EdgeGPT\EdgeGPT.py", line 242, in <module>
    main()
  File "D:\Company\code\partner-profile-generator\src\EdgeGPT\main.py", line 286, in main
    asyncio.run(async_main(args))
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 616, in run_until_complete
    return future.result()
  File "D:\Company\code\partner-profile-generator\src\EdgeGPT\main.py", line 190, in async_main
    async for final, response in bot.ask_stream(
  File "D:\Company\code\partner-profile-generator\src\EdgeGPT\EdgeGPT.py", line 190, in ask_stream
    async for response in self.chat_hub.ask_stream(
  File "D:\Company\code\partner-profile-generator\src\EdgeGPT\chathub.py", line 197, in ask_stream
    raise Exception(
Exception: UnauthorizedRequest: Cannot retrieve user status.

Additional information

No response