signal-cli-rest-api icon indicating copy to clipboard operation
signal-cli-rest-api copied to clipboard

List groups api returns empty array

Open kentliuqiao opened this issue 1 year ago • 2 comments

The problem

I've set up my local signal-cli using docker with this command $ sudo docker run -d --name signal-api --restart=always -p 8080:8080 \ -v $HOME/.local/share/signal-cli:/home/.local/share/signal-cli \ -e 'MODE=native' bbernhard/signal-cli-rest-api And then I create a new group on my phone(the same account as in my docker). But when I queried the list groups api: /v1/groups/<phone_number>, it returned empty array.

Should I create group using the rest api? Or there's something else went wrong?

My OS system is Mac Mini, CPU is Apple M2, macOS version is 14.2(Sonama).

Please help.

Are you using the latest released version?

  • [X] Yes

Have you read the troubleshooting page?

  • [X] Yes

What type of installation are you running?

signal-cli-rest-api Docker Container

In which mode are you using the docker container?

Normal Mode

What's the architecture of your host system?

other

Additional information

No response

kentliuqiao avatar Mar 14 '24 15:03 kentliuqiao

Do you call the receive endpoint regularily? That is required in normal/native mode. Otherwise you can also switch to the json-rpc mode where this is done implicitly.

bbernhard avatar Mar 14 '24 16:03 bbernhard

I'm using json-rpc mode. The problem is gone after I sent a message in the group on my cellphone.

kentliuqiao avatar Mar 15 '24 10:03 kentliuqiao