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
687 stars 82 forks source link

TypeError: 'NoneType' object is not subscriptable #73

Closed bluusun closed 9 months ago

bluusun commented 9 months ago

from poe_api_wrapper import PoeApi client = PoeApi("premium_token")

bot = "a2" message = "What is reverse engineering?"

Create new chat thread

Streamed example:

for chunk in client.send_message(bot, message): print(chunk["response"], end="", flush=True) print("\n")

Non-streamed example:

for chunk in client.send_message(bot, message): pass print(chunk["text"])

File "/opt/homebrew/lib/python3.11/site-packages/poe_api_wrapper/api.py", line 706, in send_message logger.info(f"New Thread created | {message_data['data']['messageEdgeCreate']['chat']['chatCode']}")


TypeError: 'NoneType' object is not subscriptable
bluusun commented 9 months ago

OOps -- This bot is currently down.