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

AddDescriptor call to non-existent set returns confusing error. #204

Open
ifadams opened this issue Aug 1, 2024 · 0 comments
Open

AddDescriptor call to non-existent set returns confusing error. #204

ifadams opened this issue Aug 1, 2024 · 0 comments
Labels
Bug Indicates unexpected or undesired behaviors

Comments

@ifadams
Copy link
Contributor

ifadams commented Aug 1, 2024

Describe the bug
If a user attempts to add a descriptor to a descriptor set that does not exist/has not been created, the error returned to the client is not clear that this is the cause.

To Reproduce

Issue any AddDescriptor call targeting a non-existent descriptor set.

Expected behavior
The enduser/client should receive a clear error describing that they are attempting to add a descriptor to a non-existent set.

Additional context
Here is the error returned when a set does not exist and you attempt to add a descriptor to it, along with the JSON query that triggered it.

[{'AddDescriptor': {'set': 'persons_faces'}}]
[{'info': 'Internal Server Error: Json Exception: in Json::Value::operator[](ArrayIndex): requires arrayValue\n', 'status': -1}]
@ifadams ifadams added the Bug Indicates unexpected or undesired behaviors label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indicates unexpected or undesired behaviors
Projects
None yet
Development

No branches or pull requests

1 participant