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

got error related to pydantic at method get_workflow_state #464

Open
volethanh opened this issue Feb 14, 2025 · 3 comments
Open

got error related to pydantic at method get_workflow_state #464

volethanh opened this issue Feb 14, 2025 · 3 comments

Comments

@volethanh
Copy link

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

Image

I have modify the code to workaround by adding more condition to check
len(workflow_state_json) == 0

Image

I don’t know if anyone here got the same error like me ? Then should it be added to the codebase of this package?

@masci masci added this to Framework Feb 14, 2025
@logan-markewich
Copy link
Collaborator

Hmm that's weird, why was the state a dict instead of a string 🤔

@volethanh
Copy link
Author

Hmm that's weird, why was the state a dict instead of a string 🤔

I have defined deploy_core and deploy_workflow as usual

Then, I use postman to call that workflow

First request is to create sessionId
Image

Then second request is to call and pass param to the specific workflow

Image

@masci
Copy link
Member

masci commented Feb 14, 2025

@volethanh I think the problem is you're passing sessionID in the task_id field in your second request. I opened #465 to raise a specific error when this happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants