Najmul190 / Discord-AI-Selfbot

A Discord chatbot / selfbot that allows users to talk to AI powered by OpenGPT or BARD. The AI runs on a genuine Discord account, not a bot account and has image detection alongside image generation.
GNU General Public License v3.0
78 stars 24 forks source link

[BUG] #25

Closed Whitesun123 closed 10 months ago

Whitesun123 commented 10 months ago

Same issue as #24

Error making the request: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://gpt4.xunika.uk/api/openai/v1/chat/completions') Task exception was never retrieved future: <Task finished name='Task-27' coro=<on_message.<locals>.generate_response_in_thread() done, defined at /home/runner/Discord-AI-Selfbot/main.py:263> exception=AttributeError("'NoneType' object has no attribute 'splitlines'")> Traceback (most recent call last): File "/home/runner/Discord-AI-Selfbot/main.py", line 266, in generate_response_in_thread chunks = split_response(response) File "/home/runner/Discord-AI-Selfbot/main.py", line 99, in split_response lines = response.splitlines() AttributeError: 'NoneType' object has no attribute 'splitlines'

I have just updated the main.py file and still get this issue, I'm hosting the bot on replit.

Najmul190 commented 10 months ago

Your repls IP may be blocked by the site, as it works fine for me.

sonujana26 commented 10 months ago

Your repls IP may be blocked by the site, as it works fine for me.

Same issue as #24

Error making the request: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://gpt4.xunika.uk/api/openai/v1/chat/completions') Task exception was never retrieved future: <Task finished name='Task-27' coro=<on_message.<locals>.generate_response_in_thread() done, defined at /home/runner/Discord-AI-Selfbot/main.py:263> exception=AttributeError("'NoneType' object has no attribute 'splitlines'")> Traceback (most recent call last): File "/home/runner/Discord-AI-Selfbot/main.py", line 266, in generate_response_in_thread chunks = split_response(response) File "/home/runner/Discord-AI-Selfbot/main.py", line 99, in split_response lines = response.splitlines() AttributeError: 'NoneType' object has no attribute 'splitlines'

Same error

ghost commented 10 months ago

try to enable vpn, worked before 4 me

Whitesun123 commented 10 months ago

After not using the bot for 3 days it now started working again.

ghost commented 10 months ago

kinda weird lmao