Skip to content

Timeout on any action while handling a webhook call #758

@alcazarsecdevs

Description

@alcazarsecdevs

The problem

Thank you for this great project.

We are running in json-rpc mode with a RECEIVE_WEBHOOK_URL pointing to a FastAPI endpoint. When a new message arrives, we want to react to it with a thumbs up. However, the /v1/reactions/ call times out. It correctly sends the reaction to the signal servers, but the response doesn't arrive while the webhook is open. This behavior only happens when inside the webhook handler.

We have tried running 2 containers simultaneously with the same shared volume. One with json-rpc to receive real-time updates and the other with native to send reactions/messages to those updates. But this blocks even further. To the point that payloads are not even sent to signal servers. As soon as we kill the json-rpc they go through again. So we have discarded this as a solution.

What can we do to send messages or reactions from a webhook handler? Is our only solution handling the webhook through a task queue like Celery? Or can we enable some setting in signal-cli-rest-api that will solve this?

Are you using the latest released version?

  • Yes

Have you read the troubleshooting page?

  • Yes

What type of installation are you running?

signal-cli-rest-api Docker Container

In which mode are you using the docker container?

JSON-RPC Mode

What's the architecture of your host system?

arm64

Additional information

The behavior feels similar to #737 but it is not caused by native or normal mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions