Skip to content

Provide useful error messages for 422 errors #173

Closed
@alahiff

Description

@alahiff

Intead of errors like the following, display something clearer:

Exception creating run: HTTP error [422]: {"detail":[{"type":"string_pattern_mismatch","loc":["body","tags",2],"msg":"String should match pattern '^[\\w\\-\\s\\.]+$'","input":"a$","ctx":{"pattern":"^[\\w\\-\\s\\.]+$"},"url":"https://errors.pydantic.dev/2.6/v/string_pattern_mismatch"}]}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions