Skip to content
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

[Bug]: AttributeError: 'dict' object has no attribute 'to_dict' #1809

Closed
2 tasks done
unclemusclez opened this issue May 15, 2024 · 3 comments
Closed
2 tasks done

[Bug]: AttributeError: 'dict' object has no attribute 'to_dict' #1809

unclemusclez opened this issue May 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@unclemusclez
Copy link

Is there an existing issue for the same bug?

Describe the bug

Refresh browser:

12:03:56 - opendevin:INFO: agent_controller.py:190 - Setting agent(CodeActAgent) state from AgentState.LOADING to AgentState.INIT
INFO:     127.0.0.1:48692 - "GET /api/litellm-models HTTP/1.1" 200 OK
INFO:     127.0.0.1:48694 - "GET /api/messages/total HTTP/1.1" 200 OK
INFO:     127.0.0.1:48712 - "GET /api/litellm-models HTTP/1.1" 200 OK
INFO:     127.0.0.1:48698 - "GET /api/refresh-files HTTP/1.1" 200 OK
INFO:     127.0.0.1:49178 - "GET /api/agents HTTP/1.1" 200 OK
INFO:     127.0.0.1:49192 - "GET /api/agents HTTP/1.1" 200 OK

Prompted with: https://i.imgur.com/H7kaWFe.png

Unfinished Session Detected

You seem to have an unfinished task. Would you like to pick up where you left off or start fresh?

Select "Start New Session":

INFO:     127.0.0.1:43238 - "DELETE /api/messages HTTP/1.1" 200 OK
12:06:24 - opendevin:INFO: msg_stack.py:95 - Deleting messages...
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-32' coro=<MessageStack._del_messages() done, defined at /mnt/p/opendevin/opendevin/server/session/msg_stack.py:94> exception=AttributeError("'dict' object has no attribute 'to_dict'")>
Traceback (most recent call last):
  File "/mnt/p/opendevin/opendevin/server/session/msg_stack.py", line 102, in _del_messages
    new_data[sid] = [msg.to_dict() for msg in msgs]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/p/opendevin/opendevin/server/session/msg_stack.py", line 102, in <listcomp>
    new_data[sid] = [msg.to_dict() for msg in msgs]
                     ^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'to_dict'

https://i.imgur.com/Zy8jWRV.png

Current Version

0.5.3

Installation and Configuration

`make run`

Model and Agent

ALL

Reproduction Steps

listed above

Logs, Errors, Screenshots, and Additional Context

No response

@unclemusclez unclemusclez added the bug Something isn't working label May 15, 2024
@unclemusclez unclemusclez changed the title [Bug]: [Bug]: AttributeError: 'dict' object has no attribute 'to_dict' May 15, 2024
@SmartManoj
Copy link
Collaborator

Check in incognito mode

@unclemusclez
Copy link
Author

unclemusclez commented May 15, 2024

That seemed to have worked.
I am running Firefox 125.0.3 (64-bit)

@unclemusclez
Copy link
Author

unclemusclez commented May 15, 2024

I received the same error again when refreshing the same private browser window and restarting OpenDevin with make run

Starting a new session instead of restoring the old one seems to trigger it.

mzydmer pushed a commit to mzydmer/OpenDevin that referenced this issue May 16, 2024
AttributeError
mzydmer pushed a commit to mzydmer/OpenDevin that referenced this issue May 16, 2024
AttributeError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants