Open shadetree01010100 opened 7 years ago
Reproduction:
null
group, as in above persist fileRemoving the null group from the persist file allows service to start normally. I think the addition of this null group is the root cause.
found the problem, if the group_by string is empty, the persistence file is saving a group with the name null, rather than a string representation of null, which causes an expected key error. entering any arbitrary string for group_by causes the group name to evaluate as a string.
To test this I set my block's group_by to "null", processed a couple signals, and then deleted the group_by value, restarrted and processed more signals. Behold the broken persist file!
"_cumulative_count": {
"__dct__": {
"null": 2,
"null": 1
}
},
"_last_reset": {
"__datetime__": {
"minute": 35,
"day": 17,
"microsecond": 10600,
"month": 10,
"year": 2017,
"hour": 16,
"second": 0
}
},
"_groups": {
"__set__": [
null,
"null"
]
}
}
this same problem was posted on our forum: https://forum.n.io/discussion/help/i-have-an-interesting-error-being-thrown-for-the-debounce-block-2
this turns out to be an issue in persistence
reopening this issue as we add methods to persistence to handle these types of things
This counter is configured to reset at midnight UTC, the service has missed 4 reset events since it was last run. The service would not start (configure failure because the above block failed to start) until I set
"load_from_persistence": false
blocks/etc/persist/test_slack_callCounter.dat: