The wordpress webhook sends a request to my express server, everytime a order is created. But after that is finished, it sends another request with barely any information.
Is this necessary, and if no, how can I prevent it from doing this?
I’m hosting the express-server on render.
{
“level”:”info”,
“message”:{
“_consuming”:false,
“_dumped”:false,
“_events”:{
},
“_eventsCount”:1,
“_parsedUrl”:{
“_raw”:”/order”,
“auth”:null,
“hash”:null,
“host”:null,
“hostname”:null,
“href”:”/order”,
“path”:”/order”,
“pathname”:”/order”,
“port”:null,
“protocol”:null,
“query”:null,
“search”:null,
“slashes”:null
},
“_readableState”:{
“autoDestroy”:false,
“awaitDrainWriters”:null,
“buffer”:{
“head”:null,
“length”:0,
“tail”:null
},
“closeEmitted”:false,
“closed”:false,
“decoder”:null,
“defaultEncoding”:”utf8″,
“destroyed”:false,
“emitClose”:true,
“emittedReadable”:false,
“encoding”:null,
“endEmitted”:false,
“ended”:false,
“errorEmitted”:false,
“errored”:null,
“flowing”:null,
“highWaterMark”:16384,
“length”:0,
“multiAwaitDrain”:false,
“needReadable”:false,
“objectMode”:false,
“pipes”:[
],
“readableListening”:false,
“reading”:false,
“readingMore”:true,
“resumeScheduled”:false,
“sync”:true
},
“aborted”:false,
“baseUrl”:””,
“body”:{
},
“client”:{
“_events”:{
“close”:[
null,
null
],
“end”:[
null,
null
]
},
“_eventsCount”:8,
“_hadError”:false,
“_host”:null,
“_httpMessage”:{
“_contentLength”:null,
“_defaultKeepAlive”:true,
“_events”:{
},
“_eventsCount”:1,
“_expect_continue”:false,
“_hasBody”:true,
“_header”:null,
“_headerSent”:false,
“_keepAliveTimeout”:5000,
“_last”:false,
“_removedConnection”:false,
“_removedContLen”:false,
“_removedTE”:false,
“_sent100”:false,
“_trailer”:””,
“chunkedEncoding”:false,
“destroyed”:false,
“finished”:false,
“locals”:{
},
“outputData”:[
],
“outputSize”:0,
“req”:”[Circular]”,
“sendDate”:true,
“shouldKeepAlive”:true,
“socket”:”[Circular]”,
“useChunkedEncodingByDefault”:true,
“writable”:true
},
“_parent”:null,
“_paused”:false,
“_pendingData”:null,
“_pendingEncoding”:””,
“_readableState”:{
“autoDestroy”:false,
“awaitDrainWriters”:null,
“buffer”:{
“head”:null,
“length”:0,
“tail”:null
},
“closeEmitted”:false,
“closed”:false,
“decoder”:null,
“defaultEncoding”:”utf8″,
“destroyed”:false,
“emitClose”:false,
“emittedReadable”:false,
“encoding”:null,
“endEmitted”:false,
“ended”:false,
“errorEmitted”:false,
“errored”:null,
“flowing”:true,
“highWaterMark”:16384,
“length”:0,
“multiAwaitDrain”:false,
“needReadable”:true,
“objectMode”:false,
“pipes”:[
],
“readableListening”:false,
“reading”:true,
“readingMore”:false,
“resumeScheduled”:false,
“sync”:false
},
“_server”:{
“_connectionKey”:”4:0.0.0.0:10000″,
“_connections”:1,
“_events”:{
},
“_eventsCount”:2,
“_handle”:{
“reading”:false
},
“_unref”:false,
“_usingWorkers”:false,
“_workers”:[
],
“allowHalfOpen”:true,
“headersTimeout”:60000,
“httpAllowHalfOpen”:false,
“keepAliveTimeout”:5000,
“maxHeadersCount”:null,
“pauseOnConnect”:false,
“requestTimeout”:0,
“timeout”:0
},
“_sockname”:null,
“_writableState”:{
“afterWriteTickInfo”:null,
“allBuffers”:true,
“allNoop”:true,
“autoDestroy”:false,
“bufferProcessing”:false,
“buffered”:[
],
“bufferedIndex”:0,
“closeEmitted”:false,
“closed”:false,
“corked”:0,
“decodeStrings”:false,
“defaultEncoding”:”utf8″,
“destroyed”:false,
“emitClose”:false,
“ended”:false,
“ending”:false,
“errorEmitted”:false,
“errored”:null,
“finalCalled”:false,
“finished”:false,
“highWaterMark”:16384,
“length”:0,
“needDrain”:false,
“objectMode”:false,
“pendingcb”:0,
“prefinished”:false,
“sync”:false,
“writecb”:null,
“writelen”:0,
“writing”:false
},
“allowHalfOpen”:true,
“connecting”:false,
“parser”:{
“_consumed”:true,
“_headers”:[
],
“_url”:””,
“incoming”:”[Circular]”,
“maxHeaderPairs”:2000,
“outgoing”:null,
“socket”:”[Circular]”
},
“server”:{
“_connectionKey”:”4:0.0.0.0:10000″,
“_connections”:1,
“_events”:{
},
“_eventsCount”:2,
“_handle”:{
“reading”:false
},
“_unref”:false,
“_usingWorkers”:false,
“_workers”:[
],
“allowHalfOpen”:true,
“headersTimeout”:60000,
“httpAllowHalfOpen”:false,
“keepAliveTimeout”:5000,
“maxHeadersCount”:null,
“pauseOnConnect”:false,
“requestTimeout”:0,
“timeout”:0
},
“timeout”:0
},
“complete”:false,
“headers”:{
“accept”:”*/*”,
“accept-encoding”:”gzip”,
“cdn-loop”:”cloudflare; subreqs=1″,
“cf-connecting-ip”:”80.74.138.140″,
“cf-ew-via”:”15″,
“cf-ipcountry”:”CH”,
“cf-ray”:”7f377973970301f4-ZRH”,
“cf-visitor”:”{\”scheme\”:\”https\”}”,
“cf-worker”:”onrender.com”,
“content-length”:”12″,
“content-type”:”application/x-www-form-urlencoded”,
“host”:”wooapi.onrender.com”,
“render-proxy-ttl”:”4″,
“true-client-ip”:”80.74.138.140″,
“user-agent”:”WooCommerce/7.7.1 Hookshot (WordPress/6.2.2)”,
“x-forwarded-for”:”80.74.138.140, 162.158.95.34, 10.217.38.144″,
“x-forwarded-proto”:”https”,
“x-request-start”:”1691494720600100″
},
“httpVersion”:”1.1″,
“httpVersionMajor”:1,
“httpVersionMinor”:1,
“method”:”POST”,
“originalUrl”:”/order”,
“params”:{
},
“query”:{
},
“rawHeaders”:[
“Host”,
“wooapi.onrender.com”,
“User-Agent”,
“WooCommerce/7.7.1 Hookshot (WordPress/6.2.2)”,
“Content-Length”,
“12”,
“Accept”,
“*/*”,
“Accept-Encoding”,
“gzip”,
“Cdn-Loop”,
“cloudflare; subreqs=1”,
“Cf-Connecting-Ip”,
“80.74.138.140”,
“Cf-Ew-Via”,
“15”,
“Cf-Ipcountry”,
“CH”,
“Cf-Ray”,
“7f377973970301f4-ZRH”,
“Cf-Visitor”,
“{\”scheme\”:\”https\”}”,
“Cf-Worker”,
“onrender.com”,
“Content-Type”,
“application/x-www-form-urlencoded”,
“Render-Proxy-Ttl”,
“4”,
“True-Client-Ip”,
“80.74.138.140”,
“X-Forwarded-For”,
“80.74.138.140, 162.158.95.34, 10.217.38.144”,
“X-Forwarded-Proto”,
“https”,
“X-Request-Start”,
“1691494720600100”
],
“rawTrailers”:[
],
“res”:{
“_contentLength”:null,
“_defaultKeepAlive”:true,
“_events”:{
},
“_eventsCount”:1,
“_expect_continue”:false,
“_hasBody”:true,
“_header”:null,
“_headerSent”:false,
“_keepAliveTimeout”:5000,
“_last”:false,
“_removedConnection”:false,
“_removedContLen”:false,
“_removedTE”:false,
“_sent100”:false,
“_trailer”:””,
“chunkedEncoding”:false,
“destroyed”:false,
“finished”:false,
“locals”:{
},
“outputData”:[
],
“outputSize”:0,
“req”:”[Circular]”,
“sendDate”:true,
“shouldKeepAlive”:true,
“socket”:{
“_events”:{
“close”:[
null,
null
],
“end”:[
null,
null
]
},
“_eventsCount”:8,
“_hadError”:false,
“_host”:null,
“_httpMessage”:”[Circular]”,
“_parent”:null,
“_paused”:false,
“_pendingData”:null,
“_pendingEncoding”:””,
“_readableState”:{
“autoDestroy”:false,
“awaitDrainWriters”:null,
“buffer”:{
“head”:null,
“length”:0,
“tail”:null
},
“closeEmitted”:false,
“closed”:false,
“decoder”:null,
“defaultEncoding”:”utf8″,
“destroyed”:false,
“emitClose”:false,
“emittedReadable”:false,
“encoding”:null,
“endEmitted”:false,
“ended”:false,
“errorEmitted”:false,
“errored”:null,
“flowing”:true,
“highWaterMark”:16384,
“length”:0,
“multiAwaitDrain”:false,
“needReadable”:true,
“objectMode”:false,
“pipes”:[
],
“readableListening”:false,
“reading”:true,
“readingMore”:false,
“resumeScheduled”:false,
“sync”:false
},
“_server”:{
“_connectionKey”:”4:0.0.0.0:10000″,
“_connections”:1,
“_events”:{
},
“_eventsCount”:2,
“_handle”:{
“reading”:false
},
“_unref”:false,
“_usingWorkers”:false,
“_workers”:[
],
“allowHalfOpen”:true,
“headersTimeout”:60000,
“httpAllowHalfOpen”:false,
“keepAliveTimeout”:5000,
“maxHeadersCount”:null,
“pauseOnConnect”:false,
“requestTimeout”:0,
“timeout”:0
},
“_sockname”:null,
“_writableState”:{
“afterWriteTickInfo”:null,
“allBuffers”:true,
“allNoop”:true,
“autoDestroy”:false,
“bufferProcessing”:false,
“buffered”:[
],
“bufferedIndex”:0,
“closeEmitted”:false,
“closed”:false,
“corked”:0,
“decodeStrings”:false,
“defaultEncoding”:”utf8″,
“destroyed”:false,
“emitClose”:false,
“ended”:false,
“ending”:false,
“errorEmitted”:false,
“errored”:null,
“finalCalled”:false,
“finished”:false,
“highWaterMark”:16384,
“length”:0,
“needDrain”:false,
“objectMode”:false,
“pendingcb”:0,
“prefinished”:false,
“sync”:false,
“writecb”:null,
“writelen”:0,
“writing”:false
},
“allowHalfOpen”:true,
“connecting”:false,
“parser”:{
“_consumed”:true,
“_headers”:[
],
“_url”:””,
“incoming”:”[Circular]”,
“maxHeaderPairs”:2000,
“outgoing”:null,
“socket”:”[Circular]”
},
“server”:{
“_connectionKey”:”4:0.0.0.0:10000″,
“_connections”:1,
“_events”:{
},
“_eventsCount”:2,
“_handle”:{
“reading”:false
},
“_unref”:false,
“_usingWorkers”:false,
“_workers”:[
],
“allowHalfOpen”:true,
“headersTimeout”:60000,
“httpAllowHalfOpen”:false,
“keepAliveTimeout”:5000,
“maxHeadersCount”:null,
“pauseOnConnect”:false,
“requestTimeout”:0,
“timeout”:0
},
“timeout”:0
},
“useChunkedEncodingByDefault”:true,
“writable”:true
},
“route”:{
“methods”:{
“post”:true
},
“path”:”/order”,
“stack”:[
{
“keys”:[
],
“method”:”post”,
“name”:”router”,
“regexp”:{
“fast_slash”:false,
“fast_star”:false
}
}
]
},
“socket”:{
“_events”:{
“close”:[
null,
null
],
“end”:[
null,
null
]
},
“_eventsCount”:8,
“_hadError”:false,
“_host”:null,
“_httpMessage”:{
“_contentLength”:null,
“_defaultKeepAlive”:true,
“_events”:{
},
“_eventsCount”:1,
“_expect_continue”:false,
“_hasBody”:true,
“_header”:null,
“_headerSent”:false,
“_keepAliveTimeout”:5000,
“_last”:false,
“_removedConnection”:false,
“_removedContLen”:false,
“_removedTE”:false,
“_sent100”:false,
“_trailer”:””,
“chunkedEncoding”:false,
“destroyed”:false,
“finished”:false,
“locals”:{
},
“outputData”:[
],
“outputSize”:0,
“req”:”[Circular]”,
“sendDate”:true,
“shouldKeepAlive”:true,
“socket”:”[Circular]”,
“useChunkedEncodingByDefault”:true,
“writable”:true
},
“_parent”:null,
“_paused”:false,
“_pendingData”:null,
“_pendingEncoding”:””,
“_readableState”:{
“autoDestroy”:false,
“awaitDrainWriters”:null,
“buffer”:{
“head”:null,
“length”:0,
“tail”:null
},
“closeEmitted”:false,
“closed”:false,
“decoder”:null,
“defaultEncoding”:”utf8″,
“destroyed”:false,
“emitClose”:false,
“emittedReadable”:false,
“encoding”:null,
“endEmitted”:false,
“ended”:false,
“errorEmitted”:false,
“errored”:null,
“flowing”:true,
“highWaterMark”:16384,
“length”:0,
“multiAwaitDrain”:false,
“needReadable”:true,
“objectMode”:false,
“pipes”:[
],
“readableListening”:false,
“reading”:true,
“readingMore”:false,
“resumeScheduled”:false,
“sync”:false
},
“_server”:{
“_connectionKey”:”4:0.0.0.0:10000″,
“_connections”:1,
“_events”:{
},
“_eventsCount”:2,
“_handle”:{
“reading”:false
},
“_unref”:false,
“_usingWorkers”:false,
“_workers”:[
],
“allowHalfOpen”:true,
“headersTimeout”:60000,
“httpAllowHalfOpen”:false,
“keepAliveTimeout”:5000,
“maxHeadersCount”:null,
“pauseOnConnect”:false,
“requestTimeout”:0,
“timeout”:0
},
“_sockname”:null,
“_writableState”:{
“afterWriteTickInfo”:null,
“allBuffers”:true,
“allNoop”:true,
“autoDestroy”:false,
“bufferProcessing”:false,
“buffered”:[
],
“bufferedIndex”:0,
“closeEmitted”:false,
“closed”:false,
“corked”:0,
“decodeStrings”:false,
“defaultEncoding”:”utf8″,
“destroyed”:false,
“emitClose”:false,
“ended”:false,
“ending”:false,
“errorEmitted”:false,
“errored”:null,
“finalCalled”:false,
“finished”:false,
“highWaterMark”:16384,
“length”:0,
“needDrain”:false,
“objectMode”:false,
“pendingcb”:0,
“prefinished”:false,
“sync”:false,
“writecb”:null,
“writelen”:0,
“writing”:false
},
“allowHalfOpen”:true,
“connecting”:false,
“parser”:{
“_consumed”:true,
“_headers”:[
],
“_url”:””,
“incoming”:”[Circular]”,
“maxHeaderPairs”:2000,
“outgoing”:null,
“socket”:”[Circular]”
},
“server”:{
“_connectionKey”:”4:0.0.0.0:10000″,
“_connections”:1,
“_events”:{
},
“_eventsCount”:2,
“_handle”:{
“reading”:false
},
“_unref”:false,
“_usingWorkers”:false,
“_workers”:[
],
“allowHalfOpen”:true,
“headersTimeout”:60000,
“httpAllowHalfOpen”:false,
“keepAliveTimeout”:5000,
“maxHeadersCount”:null,
“pauseOnConnect”:false,
“requestTimeout”:0,
“timeout”:0
},
“timeout”:0
},
“statusCode”:null,
“statusMessage”:null,
“trailers”:{
},
“upgrade”:false,
“url”:”/order”
}
}
​
[ad_2]