我使用tinyreq获取页面内容,但我遇到了以下错误:
错误:超出了最大重定向。在ClientRequest.cb (/var/www/html/node_project/node_modules/follow-redirects/create.js:64:15) 在emitOne的Object.onceWrapper(events.js:293:19)处(events.js:96:13) 在ClientRequest.emit(events.js:191:7)at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)在HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)在TLSSocket.socketOnData (_http_client.js:411:20)在emitOne(events.js:96:13)at at aptAddChunk中的TLSSocket.emit(events.js:191:7) (_stream_readable.js:178:18)在TLSSocket.Readable.push (_stream_readable.js:136:10)在TLSWrap.onread(net.js:561:20)