if (response.headers['content-type'].includes('json')) {
^
TypeError: Cannot read properties of undefined (reading 'includes')
at ClientRequest. (E:\AIWorkflow\test\sudu\node_modules\fast-speedtest-api\src\Api.js:68:46)
at Object.onceWrapper (node:events:634:26)
at ClientRequest.emit (node:events:519:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:709:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:551:22)
at TLSSocket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
if (response.headers['content-type'].includes('json')) { ^
TypeError: Cannot read properties of undefined (reading 'includes') at ClientRequest. (E:\AIWorkflow\test\sudu\node_modules\fast-speedtest-api\src\Api.js:68:46)
at Object.onceWrapper (node:events:634:26)
at ClientRequest.emit (node:events:519:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:709:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:551:22)
at TLSSocket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)