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

Handle MongoDB ID Validation Error #20

Open
ztnel opened this issue Oct 10, 2021 · 0 comments
Open

Handle MongoDB ID Validation Error #20

ztnel opened this issue Oct 10, 2021 · 0 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@ztnel
Copy link
Member

ztnel commented Oct 10, 2021

Description

 mongoengine.errors.ValidationError: 'stringstringstringstring' is not a valid ObjectId, it must be a 12-byte input or a 24-character hex string

Should return 400 not 500

@ztnel ztnel added the invalid This doesn't seem right label Oct 10, 2021
@ztnel ztnel self-assigned this Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant