Skip to content

Deserializing some CopSt responses provide an empty string causing parsing error. May require further investigation.#64

Closed
jaestevan wants to merge 2 commits intomicrosoft:mainfrom
jaestevan:main
Closed

Deserializing some CopSt responses provide an empty string causing parsing error. May require further investigation.#64
jaestevan wants to merge 2 commits intomicrosoft:mainfrom
jaestevan:main

Conversation

@jaestevan
Copy link
Member

While testing copilot_studio_client_sample with a fresh/empty CopilotStudio agent, I got a parsing error due to an empty string in some of the fields in activity_data. The try-catch works as a workaround but further research may be required to get to the root cause.

This is the raw error:

Exception has occurred: ValidationError
1 validation error for Activity
text
  String should have at least 1 character [type=string_too_short, input_value='', input_type=str]
    For further information visit https://errors.pydantic.dev/2.11/v/string_too_short
  File "C:\Repos\test\test.py", line 178, in start_service self._print_activity(activity)
  File "C:\Repos\test\test.py", line 227, in <module>
    loop.run_until_complete(ChatConsoleService(create_mcs_client(mcs_connection_settings)).start_service())
pydantic_core._pydantic_core.ValidationError: 1 validation error for Activity
text
  String should have at least 1 character [type=string_too_short, input_value='', input_type=str]
    For further information visit https://errors.pydantic.dev/2.11/v/string_too_short

@jaestevan
Copy link
Member Author

jaestevan commented Jul 17, 2025

Related to #48 @axelsrz sorry if dupl.

@axelsrz
Copy link
Member

axelsrz commented Jul 17, 2025

@jaestevan this was fixed in #52 should come with next release or if you pull from main

@axelsrz axelsrz closed this Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments