Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook stops working #263

Open
ejdoming opened this issue Sep 18, 2024 · 7 comments
Open

Webhook stops working #263

ejdoming opened this issue Sep 18, 2024 · 7 comments

Comments

@ejdoming
Copy link

When I start the service, the webhook runs well. But after an undetermined amount of time, it stops working. Is anyone else experiencing this? Ps: I am running with docker.

@klawdyo
Copy link

klawdyo commented Sep 19, 2024

None of my webhooks work. I enter the URL and nothing gets there. I'm also using docker.

@ejdoming
Copy link
Author

None of my webhooks work. I enter the URL and nothing gets there. I'm also using docker.

In this case, the problem might be in the settings. Check the environment variables related to webhooks. Run exec /bin/bash to open a terminal in your container, and try accessing the endpoint using curl from within it.

@klawdyo
Copy link

klawdyo commented Sep 21, 2024

This my settings. Both are correct. I have tested with curl in my local machine, linux 22, and from my vps.

API_KEY=XXXXXXXXXXXXXXXXXXXXXXXX
BASE_WEBHOOK_URL=https://webhook.site/XXXXXXXXXXXXXXXXXX
DISABLED_CALLBACKS=
ENABLE_LOCAL_CALLBACK_EXAMPLE=false
ENABLE_SWAGGER_ENDPOINT=true
MAX_ATTACHMENT_SIZE=10000000
PORT=3000
RATE_LIMIT_MAX=1000
RATE_LIMIT_WINDOW_MS=1000
RECOVER_SESSIONS=true
SESSIONS_PATH=./sessions
SET_MESSAGES_AS_SEEN=false
WEB_VERSION='2.2328.5'
WEB_VERSION_CACHE_TYPE=none

Inside docker, I don't have curl. Is it required?

@ejdoming
Copy link
Author

This my settings. Both are correct. I have tested with curl in my local machine, linux 22, and from my vps.

API_KEY=XXXXXXXXXXXXXXXXXXXXXXXX
BASE_WEBHOOK_URL=https://webhook.site/XXXXXXXXXXXXXXXXXX
DISABLED_CALLBACKS=
ENABLE_LOCAL_CALLBACK_EXAMPLE=false
ENABLE_SWAGGER_ENDPOINT=true
MAX_ATTACHMENT_SIZE=10000000
PORT=3000
RATE_LIMIT_MAX=1000
RATE_LIMIT_WINDOW_MS=1000
RECOVER_SESSIONS=true
SESSIONS_PATH=./sessions
SET_MESSAGES_AS_SEEN=false
WEB_VERSION='2.2328.5'
WEB_VERSION_CACHE_TYPE=none

Inside docker, I don't have curl. Is it required?

It`s required for testing only

@klawdyo
Copy link

klawdyo commented Sep 22, 2024

So where is the error?

@gabrielaltea
Copy link

I have two computers with Windows 11, Node 22 and PM2. They have been running since May of this year and one of them no longer triggers the webhook, it does not send any data, it does not even call the URL that was previously configured and working.
I have not updated anything, nor changed the configuration, both computers work to send Whatsapp without problems, but only one of them does not have the webhook working.

@ejdoming
Copy link
Author

ejdoming commented Oct 1, 2024

To solve this issue, I forked the project and modified the code to write the webhook data directly to the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants