-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute 'payload' #1547
Comments
Hey @sensahin, thanks for opening the issue. Can you please share the code snippet for this so that we can reproduce the issue? |
Hi @deshraj I am just using the below sample code that is provided on the Github page:
|
It should be this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Describe the bug
[{'id': '31619c76-dfb6-4418-aea4-99b5ab04040d', 'event': 'add', 'data': 'Working on improving tennis skills'}]
[{'id': '31619c76-dfb6-4418-aea4-99b5ab04040d', 'text': 'Working on improving tennis skills', 'metadata': {'category': 'hobbies', 'user_id': 'alice', 'data': 'Working on improving tennis skills', 'created_at': 1721722520}}]
[{'id': '31619c76-dfb6-4418-aea4-99b5ab04040d', 'text': 'Working on improving tennis skills', 'metadata': {'category': 'hobbies', 'user_id': 'alice', 'data': 'Working on improving tennis skills', 'created_at': 1721722520}, 'score': 0.2371265959456912}]
Traceback (most recent call last):
File "/Users/senolsahin/Work/newsforgpt/test3.py", line 23, in
result = m.update(memory_id="m1", data="Likes to play tennis on weekends")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/senolsahin/Work/newsforgpt/env/lib/python3.12/site-packages/mem0/memory/main.py", line 317, in update
self._update_memory_tool(memory_id, data)
File "/Users/senolsahin/Work/newsforgpt/env/lib/python3.12/site-packages/mem0/memory/main.py", line 390, in _update_memory_tool
prev_value = existing_memory.payload.get("data")
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'payload'
The text was updated successfully, but these errors were encountered: