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

Error 400 when sending message (message is still sent)

Open Joly0 opened this issue 1 year ago • 3 comments

The problem

I tried setting up this project alongside with apprise and noticed, that when using apprise to send notifications to my signal number, apprise would always complain about it with error code 400. Also saw this in the signal-cli logs.

When i tried to run the recommended command for testing $ curl -X POST -H "Content-Type: application/json" 'http://localhost:8080/v2/send' \ -d '{"message": "Test via Signal API!", "number": "+4412345", "recipients": [ "+44987654" ]}' i noticed this behaviour aswell. The logs also state error 400

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?

Native Mode

What's the architecture of your host system?

x86-64

Additional information

No response

Joly0 avatar Sep 15 '24 01:09 Joly0

This seems to be an upstream issue, see https://github.com/AsamK/signal-cli/issues/1584

bbernhard avatar Sep 15 '24 07:09 bbernhard

Ok, good to know. But it seems to ve fixed in upstream already 4 days ago.

Joly0 avatar Sep 15 '24 08:09 Joly0

yes, but there is no release yet.

bbernhard avatar Sep 15 '24 09:09 bbernhard

Please give this version a try: bbernhard/signal-cli-rest-api:0.168-dev

bbernhard avatar Sep 30 '24 19:09 bbernhard

Yep, works correctly with this version

Joly0 avatar Oct 04 '24 13:10 Joly0

Should be fixed with the latest release.

bbernhard avatar Oct 05 '24 13:10 bbernhard