-
Notifications
You must be signed in to change notification settings - Fork 65
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
Show descriptive error message on validation error #241
Comments
Can you give an example how I can setup such a validated collection, in order to reproduce the problem? |
Sure, will do in couple of hours!
…On Sun, May 29, 2022, 15:58 Jeroen Ooms ***@***.***> wrote:
Can you give an example how I can setup such a validated collection, in
order to reproduce the problem?
—
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF6FCEASW4DSZ446WVV7HA3VMNSXFANCNFSM5XEULFNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Create a database table with a validator, taken example from here
Try to write with wrong column type from R, e.g.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please, add context to the error message when validation is failing upon insert.
As of mongolite version
2.3.1
it gives a general validation error:While in mongo console I can get a right away answer into what's causing validation error:
Alternatively, please give me a hint on how to find that error json in mongolite, setting log_level didn't do it and I digged into source code to no avail :(
The text was updated successfully, but these errors were encountered: