Skip to content

threads/start doesn't throw a clear validation error #216

@Ishankoradia

Description

@Ishankoradia

Describe the bug
When the payload uses query instead of question, the api /threads/start throws a generic 500 exception which is very confusing for the client.

To Reproduce
Steps to reproduce the behavior:

  1. Hit the threads api with a different payload key. For eg. query instead of question

Expected behavior
Should throw a client 4xx error with proper message saying the required key is not present in the payload

Screenshots

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions