-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add entity oid to traceback #628
Comments
@osimicek it will be usefull to look at the printed line as raise InvalidId("%s is not a valid ObjectId" % oid) does exactly what you want. It prints out the line "%s is not a valid ObjectId" where It looks like this issue is related to #618 as both rely on ObjectId validation. |
I don´t need to see the wrong oid attribute. I need to find whole wrong entity.
I need to know oid of entity which is wrong. In this case 5305f722ee6da1059fab208d. |
It is not a good idea to report whole entity by default as it could contain May be its time to think about logging exceptions and different reports on On Tue, Apr 15, 2014 at 1:44 PM, osimicek [email protected] wrote:
Serge Matveenko Пародуй.рф — http://www.parodui.ru/ |
Whole traceback contains sensitive data. Tracebacks must not be visible on production servers!
|
Thus you have the right point on more informative exceptions and we must to On Tue, Apr 15, 2014 at 2:50 PM, osimicek [email protected] wrote:
Serge Matveenko ðÁÒÏÄÕÊ.ÒÆ -- http://www.parodui.ru/ |
This looks like feature request. Not a bug. |
This is how an empty string as
And that's the way to identify a document uniquely |
Hi,
I use mongoengine and rockmongo to manage my MongoDB. Sometimes in rockmongo I make a mistake and fill attribute with empty string "" instead of oid.
Then I get this error:
The traceback is useful but I´m not able to track down which entity causes this. Is there any chance to add to traceback an information about entity that is processed (oid or dict repr.)?
Thanks for answer.
The text was updated successfully, but these errors were encountered: