arrowhead-f / arrowhead-f/client-library-python

`process_orchestration` raises ValidationError of pydantic

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Hi, when I try to do orchestration of a service, I get a ValidationError of pydantic. When I debug the code step by step, I realize that `authenticationInfo` couldn't get from core service Orchestration. It's actually null in the database and this doesn't cause an error in Java client. However when I debug and I even change the provider value orchestration response as `authenticationInfo = null`, error continue. Finally, I changed the provider value of orchestration response as `authenticationInfo = ""` and it was fixed. Even provider `authenticationInfo` is nonrequired, `process_orchestration` raises error. I'm sharing debugging screenshots.

`authenticationInfo` is returned from core service Orchestration and there is no exception in Java client
![java](https://user-images.githubusercontent.com/54269270/150593277-697472a7-a95a-4a23-9f72-b37dd273d682.jpg)
`authenticationInfo` couldn't get from service Orchestration
![python](https://user-images.githubusercontent.com/54269270/150593289-8d16bc32-330b-4707-8b26-598c48cffaac.jpg)
`authenticationInfo` couldn't get from service Orchestration and error raised from pydantic like below
![exception](https://user-images.githubusercontent.com/54269270/150593762-c2bcc5e6-3952-400c-b377-e212b28c156a.jpg)
`authenticationInfo` couldn't get from service Orchestration and I added it as null but error raised from pydantic like below,
![python2](https://user-images.githubusercontent.com/54269270/150593777-df0f8ad7-7ac2-41df-9cf3-3ec23c366687.jpg)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.