snowby666 / poe-api-wrapper

👾 A Python API wrapper for Poe.com. With this, you will have free access to GPT-4, Claude, Llama, Gemini, Mistral and more! 🚀
https://pypi.org/project/poe-api-wrapper/
GNU General Public License v3.0
677 stars 81 forks source link

An unknown error occurred #127

Closed phamxtien closed 3 months ago

phamxtien commented 3 months ago

Today it return error

An unknown error occurred. Raw response data: {'data': None, 'errors': [{'message': 'Server Error'}], 'extensions': {'is_final': True}

PMajesty commented 3 months ago

I think this happens when you specify a chat. I have the same issue, I worked around it by not specifying a chat for now

phamxtien commented 3 months ago

It return error on second prompt First prompt: Hi >> It's OK Second prompt: How are you today >> It returns error But on poe.com it's OK :(( image

phamxtien commented 3 months ago

It error on this line image

phamxtien commented 3 months ago

I think this happens when you specify a chat. I have the same issue, I worked around it by not specifying a chat for now

I followed these instructions and options 1, 2, and 3 all returned errors at the second prompt

image

PMajesty commented 3 months ago

I think this happens when you specify a chat. I have the same issue, I worked around it by not specifying a chat for now

I followed these instructions and options 1, 2, and 3 all returned errors at the second prompt

image

I mean, for the time being, until the bug is fixed, I do just send_message(bot, message). No chatId, no chatCode, no reference to any chat at all. Yes you can only send 1 message in such a way, but at least it works.

But it is a bug. I have that too

snowby666 commented 3 months ago

This was caused by a indent mistake. I'll fix it in the next update with other features.

snowby666 commented 3 months ago

this is fixed in the new version

PMajesty commented 3 months ago

@snowby666 thank you for your efforts. Great package BTW!!!

FightingFranky commented 3 weeks ago

this is fixed in the new version

I don't think this is solved, it happened to me a lot.

File "/Users/edy/miniconda3/lib/python3.11/site-packages/poe_api_wrapper/api.py", line 748, in send_message raise e File "/Users/edy/miniconda3/lib/python3.11/site-packages/poe_api_wrapper/api.py", line 733, in send_message raise RuntimeError(f"An unknown error occurred. Raw response data: {message_data}") RuntimeError: An unknown error occurred. Raw response data: {'data': None, 'errors': [{'message': 'Server Error'}], 'extensions': {'is_final': True}}