mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-25 10:39:36 -04:00
got error related to pydantic at method get_workflow_state #171
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @volethanh on GitHub (Feb 13, 2025).
Hi,
I’ve got this issue from the previous version until now (0.6.1)
It’s related to pydantic WorkflowState.model_validate_json whenever the message comes to workflow
I have modify the code to workaround by adding more condition to check
len(workflow_state_json) == 0I don’t know if anyone here got the same error like me ? Then should it be added to the codebase of this package?
@logan-markewich commented on GitHub (Feb 13, 2025):
Hmm that's weird, why was the state a dict instead of a string 🤔
@volethanh commented on GitHub (Feb 13, 2025):
I have defined deploy_core and deploy_workflow as usual
Then, I use postman to call that workflow
First request is to create sessionId

Then second request is to call and pass param to the specific workflow
@masci commented on GitHub (Feb 14, 2025):
@volethanh I think the problem is you're passing
sessionIDin thetask_idfield in your second request. I opened https://github.com/run-llama/llama_deploy/pull/465 to raise a specific error when this happens.@masci commented on GitHub (Mar 6, 2025):
I'm closing this, feel free to reopen if the problem persists