processone / ejabberd-api

ejabberd API library in Go and multi-platform command-line tool
http://www.process-one.net/
24 stars 11 forks source link

cannot unmarshal number into Go value of type ejabberd.Stats #6

Open zzzZLRzzz opened 9 months ago

zzzZLRzzz commented 9 months ago
  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
Neustradamus commented 5 months ago

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