#618·EdgeGPT

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

Author: xuanvuzzz2601Created Jul 18, 2023Updated Jul 18, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

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

bash
No

Console logs

bash
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