Cannot send to a production webhook (CURL is workimg)

Hey.
I am trying to send to a production webhook and I get:

1|wa-bot | :bug: [DEBUG][PRIVATE MESSAGE] נכנס ליד חדש- אלו הפרטים:
1|wa-bot | שם : Yaniv Cohen
1|wa-bot | פלאפון:+972545515343
1|wa-bot | מספר עובדים בעסק:
1|wa-bot | 2-10
1|wa-bot | רקע על העסק:
1|wa-bot | משרד תיווך נדל"ן
1|wa-bot | :police_car_light: Trigger word detected, sending webhook…
1|wa-bot | :cross_mark: Failed to send webhook: FetchError: request to https://n8n.roeeaizman.com/webhook/117edcf8-b8a6-4f62-80b6-7 failed, reason: Client network socket disconnected before secure TLS connection was established
1|wa-bot | at ClientRequest. (/usr/share/nodejs/node-fetch/cjs/index.cjs:6624:11)
1|wa-bot | at ClientRequest.emit (node:events:529:35)
1|wa-bot | at TLSSocket.socketErrorListener (node:_http_client:501:9)
1|wa-bot | at TLSSocket.emit (node:events:517:28)
1|wa-bot | at emitErrorNT (node:internal/streams/destroy:151:8)
1|wa-bot | at emitErrorCloseNT (node:internal/streams/destroy:116:3)
1|wa-bot | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
1|wa-bot | type: ‘system’,
1|wa-bot | errno: ‘ECONNRESET’,
1|wa-bot | code: ‘ECONNRESET’,
1|wa-bot | erroredSysCall: undefined
1|wa-bot | }

When I am sending CURL it is working.

What is the problem with the Webhooks that are not trusted?

Hey @Roee_Aizman hope all is good.

So you are sending the request from wa-bot to the webhook in n8n?
Are you sure the workflow is active? Are you saying that when you send the request from curl to n8n it works and the request from whatever wa-bot is, it fails?

Exactly.

Its not the first time im doing it?

roee@OX-RoeeA Documents % curl -X POST https://n8n.roeeaizman.com/webhook/117edcf8-b8a6-4f62-80b6-7467fcae0582
-H “Content-Type: application/json”
-H “Authorization: Bearer YEbkiCW1sD4swLxerbQ88VALFPc3b7FZ0eKq23Z3KJLOJzCM”
-d ‘{“test”:“hello”}’
{“message”:“Workflow was started”}%
roee@OX-RoeeA Documents % curl -X POST https://n8n.roeeaizman.com/webhook-test/117edcf8-b8a6-4f62-80b6-7467fcae0582
-H “Content-Type: application/json”
-H “Authorization: Bearer YEbkiCW1sD4swLxerbQ88VAL7FZ0eKq23Z3KJLOJzCM”
-d ‘{“test”:“hello from curl”}’
{“message”:“Workflow was started”}%

Sorry, are you asking me that? I don’t know :slight_smile:
Is it?

So, the curl works, clearly indicating that the instance is ready to accept connections, I am sure the postman will show the same… Do you see where I am going with this? It most certainly feels like you probably want to take a look at another side of this equation.

Ive replaced the fetch library with a native https and it worked

1 Like