# Bug with default value

**URL:** <https://community.datagerry.com/t/bug-with-default-value/278>\
**Category:** Report a Bug\
**Created:** [March 12, 2021, 6:40am UTC](https://community.datagerry.com/t/bug-with-default-value/278 "2021-03-12T06:40:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcinw](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@marcinw](https://community.datagerry.com/u/marcinw)\
**Post date:** [March 12, 2021, 6:40am UTC](https://community.datagerry.com/t/bug-with-default-value/278/1 "2021-03-12T06:40:10Z")

</div>

Hello,  
From wednesday i can’t go go to list objects in one type. Rendering list was broken.

> **log fragment**
>
> [2021-03-10 12:52:34][ERROR] — Exception on /objects/ [GET] (app.py)  
> Traceback (most recent call last):  
> File “flask/app.py”, line 2447, in wsgi\_app  
> File “flask/app.py”, line 1952, in full\_dispatch\_request  
> File “flask\_cors/extension.py”, line 165, in wrapped\_function  
> File “flask/app.py”, line 1821, in handle\_user\_exception  
> File “flask/\_compat.py”, line 39, in reraise  
> File “flask/app.py”, line 1950, in full\_dispatch\_request  
> File “flask/app.py”, line 1936, in dispatch\_request  
> File “cmdb/interface/blueprint.py”, line 80, in \_decorate  
> File “cmdb/interface/blueprint.py”, line 155, in \_decorate  
> File “cmdb/interface/route\_utils.py”, line 149, in get\_request\_user  
> File “cmdb/interface/rest\_api/framework\_routes/object\_routes.py”, line 89, in get\_objects  
> File “cmdb/utils/wraps.py”, line 121, in wrap  
> File “cmdb/framework/cmdb\_render.py”, line 371, in render\_result\_list  
> File “cmdb/framework/cmdb\_render.py”, line 136, in result  
> File “cmdb/framework/cmdb\_render.py”, line 143, in \_generate\_result  
> File “cmdb/framework/cmdb\_render.py”, line 204, in \_\_set\_fields  
> File “cmdb/framework/cmdb\_render.py”, line 224, in \_\_merge\_fields\_value  
> KeyError: ‘value’  
> [2021-03-10 12:52:36][ERROR] — Exception on /objects/ [GET] (app.py)  
> Traceback (most recent call last):  
> File “flask/app.py”, line 2447, in wsgi\_app  
> File “flask/app.py”, line 1952, in full\_dispatch\_request  
> File “flask\_cors/extension.py”, line 165, in wrapped\_function  
> File “flask/app.py”, line 1821, in handle\_user\_exception  
> File “flask/\_compat.py”, line 39, in reraise  
> File “flask/app.py”, line 1950, in full\_dispatch\_request  
> File “flask/app.py”, line 1936, in dispatch\_request  
> File “cmdb/interface/blueprint.py”, line 80, in \_decorate  
> File “cmdb/interface/blueprint.py”, line 155, in \_decorate  
> File “cmdb/interface/route\_utils.py”, line 149, in get\_request\_user  
> File “cmdb/interface/rest\_api/framework\_routes/object\_routes.py”, line 89, in get\_objects  
> File “cmdb/utils/wraps.py”, line 121, in wrap  
> File “cmdb/framework/cmdb\_render.py”, line 371, in render\_result\_list  
> File “cmdb/framework/cmdb\_render.py”, line 136, in result  
> File “cmdb/framework/cmdb\_render.py”, line 143, in \_generate\_result  
> File “cmdb/framework/cmdb\_render.py”, line 204, in \_\_set\_fields  
> File “cmdb/framework/cmdb\_render.py”, line 224, in \_\_merge\_fields\_value  
> KeyError: ‘value’

in /var/log/messages show also:

> **/var/log/messages**
>
> Mar 10 14:20:03 server datagerry[2713234]: [2021-03-10 14:20:03][DEBUG] — RenderList took 28.823375701904297 MS (wraps.py)  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/route\_utils.py:83: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/rest\_api/framework\_routes/object\_routes.py:353: DeprecationWarning: Call to deprecated function make\_response.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/blueprint.py:46: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/interface/blueprint.py:46: DeprecationWarning: Call to deprecated function auth\_is\_valid.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:255: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:03 server datagerry[2713234]: [2021-03-10 14:20:03][DEBUG] — RenderList took 31.594514846801758 MS (wraps.py)  
> Mar 10 14:20:12 server datagerry[2713234]: [2021-03-10 14:20:12][DEBUG] — event received: cmdb.exportd.run\_manual (service.py)  
> Mar 10 14:20:18 server datagerry[2713234]: /tmp/\_MEIJnHDUc/cmdb/framework/cmdb\_render.py:366: DeprecationWarning: Call to deprecated function get\_type.  
> Mar 10 14:20:18 server datagerry[2713234]: [2021-03-10 14:20:18][ERROR] — ‘value’ (service.py)

and also:

> **and this ERROR**
>
> Mar 10 14:14:59 server datagerry[2634557]: [2021-03-10 14:14:59][ERROR] — ‘value’ (service.py)  
> Mar 10 14:15:00 server datagerry[2634557]: [2021-03-10 14:15:00][ERROR] — ‘value’ (service.py)  
> Mar 10 14:15:01 server datagerry[2634557]: [2021-03-10 14:15:01][ERROR] — ‘value’ (service.py)

by debugging and searching it turned out that some user want copied object, and change values in many fields. when he want saved. application show this bugs upper “log fragment”.  
We found this object and turned out that application during save object doing bugs. from his object disappeard parameter “values”:

For 2 fields in t

> ```
> {
> "name": "rola",
> },
> 
> ```

…

> ```
> {
> "name": "notatki"
> }
> 
> ```

we update this object values from mongod  
after our update object had name and value arguments with values

> ```
> {
> "name": "notatki",
> "value": null
> }
> 
> ```

then it works again.

What is interesting  
He after our repair crash app again and it was wired.  
In different object in different field.  
Again he copied from some object.

during the conversation and detailing how he does it, it turned out that every field he does not fill out is marked by him by clicking ![image](https://europe1.discourse-cdn.com/flex013/uploads/datagerry/original/1X/f8a600f970874592f786f831abbed775f095f194.png) (Default:)

What is interesting next, **fields which was filling caused which crash in app was “text fields”.**

You have to check your application because it is not simple to find and repair that’s bugs

P.S.  
What is interesting next **when field was required and some user clicked pencil field was filling up “No reference set” and could save object.**

---

<div class="post-metadata">

**Author:** ![sergej.dumler](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@sergej.dumler](https://community.datagerry.com/u/sergej.dumler)\
**Post date:** [March 12, 2021, 8:57am UTC](https://community.datagerry.com/t/bug-with-default-value/278/2 "2021-03-12T08:57:21Z")

</div>

Thank you very much for your summary. We will take a look at it.

---

<div class="post-metadata">

**Author:** ![marcinw](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@marcinw](https://community.datagerry.com/u/marcinw)\
**Post date:** [March 15, 2021, 1:27pm UTC](https://community.datagerry.com/t/bug-with-default-value/278/3 "2021-03-15T13:27:14Z")

</div>

Hello @sergej.dumler  
No problem 🙂

---

<div class="post-metadata">

**Author:** ![adnan.smajic](https://dub1.discourse-cdn.com/flex013/user_avatar/community.datagerry.com/adnan.smajic/32/754_2.png) [@adnan.smajic](https://community.datagerry.com/u/adnan.smajic)\
**Post date:** [April 4, 2025, 7:50am UTC](https://community.datagerry.com/t/bug-with-default-value/278/4 "2025-04-04T07:50:47Z")

</div>

Closed on April 4, 2025, 7:50am UTC


