Merge branch 'bugfix' into 'master'

counter: fix error for stats 500 on PermissionDenied

See merge request !208
3 jobs for master in 30 minutes and 18 seconds (queued for 4 minutes and 11 seconds)
Status Job ID Name Coverage
  Test
passed #2237
black

00:06:50

passed #2242
test

00:23:28

62.0%
failed #2236
test

00:00:45