написано что редиректы по дефолту включены. Вот ошибка
(node:53532) UnhandledPromiseRejectionWarning: StatusCodeError: 302 - "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>Redirecting...</title>\n<h1>Redirecting...</h1>\n<p>You should be redirected automatically to target URL: <a href=\"/value/b/2\">/value/b/2</a>. If not click the link."
at new StatusCodeError (F:\Programming\learn\front\nodeLearn\polshaBelarus\node_modules\request-promise-core\lib\errors.js:32:15)
at Request.plumbing.callback (F:\Programming\learn\front\nodeLearn\polshaBelarus\node_modules\request-promise-core\lib\plumbing.js:104:33)
at Request.RP$callback [as _callback] (F:\Programming\learn\front\nodeLearn\polshaBelarus\node_modules\request-promise-core\lib\plumbing.js:46:31)
at Request.self.callback (F:\Programming\learn\front\nodeLearn\polshaBelarus\node_modules\request\request.js:185:22)
at Request.emit (events.js:189:13)
at Request.<anonymous> (F:\Programming\learn\front\nodeLearn\polshaBelarus\node_modules\request\request.js:1161:10)
at Request.emit (events.js:189:13)
at IncomingMessage.<anonymous> (F:\Programming\learn\front\nodeLearn\polshaBelarus\node_modules\request\request.js:1083:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
(node:53532) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:53532) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
У вас какой-то респонс невалидный, не чистый 302
Обсуждают сегодня