ejabberd-api icon indicating copy to clipboard operation
ejabberd-api copied to clipboard

cannot unmarshal number into Go value of type ejabberd.Stats

Open zzzZLRzzz opened this issue 2 years ago • 1 comments

  1. run ejabberd23.10
  2. register zlr@localhost zlr
  3. go install -v github.com/processone/ejabberd-api/cmd/ejabberd@master
  4. generate token : ./ejabberd token -j zlr@localhost -p zlr -s ejabberd:admin
  5. try the api ./ejabberd stats registeredusers
  6. error occured: ejabberd: error: stats error "registeredusers": Error 99: json: cannot unmarshal number into Go value of type ejabberd.Stats

zzzZLRzzz avatar Feb 08 '24 13:02 zzzZLRzzz

@prefiks: @zzzZLRzzz has done a ticket here a long time ago...

Neustradamus avatar Jun 20 '24 13:06 Neustradamus