Production WebHook URL doesn't work

Describe the problem/error/question

Hi there!

I’ve been working with the Webhook node test URL for a frontend app of mine, and it works. But the problem is with the production URL, it doesn’t trigger the workflow.

This is my webhook node:

And this is my workflow:

As you can see, I’ve been checked the “Active” switch

This is the error I get in my server.:

Error enviando OTP: AxiosError: getaddrinfo ENOTFOUND webhook.iurdsys.io
at AxiosError.from (C:\Users\ajmb\Documents\baut\auth-backend\node_modules\axios\dist\node\axios.cjs:876:14)
at RedirectableRequest.handleRequestError (C:\Users\ajmb\Documents\baut\auth-backend\node_modules\axios\dist\node\axios.cjs:3156:25)
at RedirectableRequest.emit (node:events:519:28)
at eventHandlers. (C:\Users\ajmb\Documents\baut\auth-backend\node_modules\follow-redirects\index.js:49:24)
at ClientRequest.emit (node:events:519:28)
at emitErrorEvent (node:_http_client:108:11)
at TLSSocket.socketErrorListener (node:_http_client:511:5)
at TLSSocket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at Axios.request (C:\Users\ajmb\Documents\baut\auth-backend\node_modules\axios\dist\node\axios.cjs:4287:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
hostname: ‘webhook.iurdsys.io’,
syscall: ‘getaddrinfo’,
code: ‘ENOTFOUND’,
errno: -3008,
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ ‘xhr’, ‘http’, ‘fetch’ ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: ‘XSRF-TOKEN’,
xsrfHeaderName: ‘X-XSRF-TOKEN’,
maxContentLength: -1,
maxBodyLength: -1,
env: { FormData: [Function], Blob: [class Blob] },
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: ‘application/json, text/plain, /’,
‘Content-Type’: ‘application/json’,
‘User-Agent’: ‘axios/1.7.7’,
‘Content-Length’: ‘41’,
‘Accept-Encoding’: ‘gzip, compress, deflate, br’
},
method: ‘post’,
url: ‘https://webhook.iurdsys.io/webhook/2e9e61f8-6b62-48cf-bfec-6e4264dabcb2’,
data: ‘{“phoneNumber”:“5587021866”,“otp”:193825}’
},
request: <ref *1> Writable {
_events: {
close: undefined,
error: [Function: handleRequestError],
prefinish: undefined,
finish: undefined,
drain: undefined,
response: [Function: handleResponse],
socket: [Function: handleRequestSocket]
},
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
_maxListeners: undefined,
_options: {
maxRedirects: 21,
maxBodyLength: Infinity,
protocol: ‘https:’,
path: ‘/webhook/2e9e61f8-6b62-48cf-bfec-6e4264dabcb2’,
method: ‘POST’,
headers: [Object: null prototype],
agents: [Object],
auth: undefined,
family: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: [Object],
hostname: ‘webhook.iurdsys.io’,
port: ‘’,
agent: undefined,
nativeProtocols: [Object],
pathname: ‘/webhook/2e9e61f8-6b62-48cf-bfec-6e4264dabcb2’
},
_ended: false,
_ending: true,
_redirectCount: 0,
_redirects: ,
_requestBodyLength: 41,
_requestBodyBuffers: [ [Object] ],
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: ,
outputSize: 0,
writable: true,
destroyed: false,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: ‘41’,
_hasBody: true,
_trailer: ‘’,
finished: false,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: ‘POST /webhook/2e9e61f8-6b62-48cf-bfec-6e4264dabcb2 HTTP/1.1\r\n’ +
‘Accept: application/json, text/plain, /\r\n’ +
‘Content-Type: application/json\r\n’ +
‘User-Agent: axios/1.7.7\r\n’ +
‘Content-Length: 41\r\n’ +
‘Accept-Encoding: gzip, compress, deflate, br\r\n’ +
‘Host: webhook.iurdsys.io\r\n’ +
‘Connection: keep-alive\r\n’ +
‘\r\n’,
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: ‘POST’,
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: ‘/webhook/2e9e61f8-6b62-48cf-bfec-6e4264dabcb2’,
_ended: false,
res: null,
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: ‘webhook.iurdsys.io’,
protocol: ‘https:’,
_redirectable: [Circular *1],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
_currentUrl: ‘https://webhook.iurdsys.io/webhook/2e9e61f8-6b62-48cf-bfec-6e4264dabcb2’,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
cause: Error: getaddrinfo ENOTFOUND webhook.iurdsys.io
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
errno: -3008,
code: ‘ENOTFOUND’,
syscall: ‘getaddrinfo’,
hostname: ‘webhook.iurdsys.io
}
}

Information on your n8n setup

  • n8n version: 1.56.2
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Ubuntu 20.04.6 LTS
1 Like

Hey @Allan_Montero

Is that error coming from your app or from n8n? Looking at the error it looks like Axios is saying the domain doesn’t exist which is unlikely to be an n8n issue.

Have you tried making the same post request with curl / postman / insomnia?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.