Skip to content

ctx.storage.set freezes the program (time-out) when attempting to store a variable of class model type #104

Open
@iliarusskikh

Description

@iliarusskikh

Prerequisites

  • I checked the documentation and found no answer to my problem
  • I checked the existing issues and made sure there are no similar bug reports

Category

Bug in Agentverse

Expected Behavior

Hello,

I tried to use storage for storing entire class model as "ctx.storage.set("ASI_COININFO", msg)"
I was hoping that it would work, however, it did not.

Image

Observed Behavior

If I use it as "ctx.storage.set("ASI_COININFO", msg)", the program would hang on "Processing envelope from.. ", then after a timeout, would finish executing this function or undefined behaviour. Spent some time figuring this out.

Image

To Reproduce

However, if I convert msg to string, it would work well.
"ctx.storage.set("ASI_COININFO", str(msg))"

Image

Thanks,
Ilia

Environment Details (Optional)

Failure Logs (Optional)

Additional Information (Optional)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions