Package: src:node-follow-redirects Version: 1.15.9+~1.14.4-1 Severity: serious Tags: ftbfs forky sid
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202511/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you cannot reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. If this is really a bug in one of the build-depends, please use reassign and add an affects on src:node-follow-redirects, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean dh_auto_clean --buildsystem=nodejs rm -rf ./node_modules/.cache ./.nyc_output rm -rf types-follow-redirects/node_modules/.cache types-follow-redirects/.nyc_output rm ./node_modules/.cache rm types-follow-redirects/node_modules/.cache rm ./node_modules/.cache unlink node_modules/@types/follow-redirects dh_clean debian/rules binary dh binary dh_update_autotools_config dh_autoreconf dh_auto_configure --buildsystem=nodejs Link node_modules/@types/follow-redirects -> ../../types-follow-redirects dh_auto_build --buildsystem=nodejs No build command found, searching known files No build command found, searching known files dh_auto_test --buildsystem=nodejs ln -s ../. node_modules/follow-redirects /bin/sh -ex debian/tests/pkg-js/test + mocha --exit --invert --grep deduplicated follow-redirects undefined http.get with string and callback - redirect (38ms) undefined http.get with URL object and callback - redirect undefined http.get with options object and callback - redirect undefined http.get with string and callback - no redirect undefined http.get with options object and callback - no redirect undefined http.get with host option and callback - redirect undefined http.get to IPv4 address undefined http.get to IPv6 address undefined http.get to bracketed IPv4 address undefined http.get to bracketed IPv4 address specified as host undefined http.get to bracketed IPv4 address specified as hostname undefined http.get to bracketed hostname undefined http.get redirecting to IPv4 address undefined http.get redirecting to IPv6 address undefined http.get redirecting to bracketed IPv4 address undefined http.get redirecting to bracketed hostname undefined http.get with response event undefined http.get with relative URL path undefined redirect to URL with fragment undefined should return with the original status code if the response does not contain a location header undefined should emit connection errors on the returned stream undefined should emit socket events on the returned stream undefined should emit connect events on the returned stream undefined emits an error on redirects with an invalid location undefined emits an error when the request fails for another reason undefined should follow redirects over https undefined should destroy responses undefined should honor query params in redirects undefined should allow aborting undefined should provide connection undefined should provide flushHeaders undefined should provide getHeader undefined should provide removeHeader undefined should provide setHeader undefined should provide setNoDelay undefined should provide setSocketKeepAlive undefined should provide setTimeout undefined should provide socket undefined should wait for an explicit call to end undefined errors on write after end undefined should support writing into request stream without redirects undefined should support writing into request stream with redirects undefined should support piping into request stream without redirects undefined should support piping into request stream with redirects undefined should support piping into request stream with explicit Content-Length without redirects undefined should support piping into request stream with explicit Content-Length with redirects undefined keeps the header when redirected from HTTP to HTTPS undefined drops the header when redirected from HTTPS to HTTP TypeError: Invalid status code: "/c". Status code must be an integer. at ServerResponse.status (/usr/share/nodejs/express/lib/response.js:65:11) at ServerResponse.redirect (/usr/share/nodejs/express/lib/response.js:848:8) at /<<PKGBUILDDIR>>/test/util.js:9:18 at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at next (/usr/share/nodejs/router/lib/route.js:157:13) at Route.dispatch (/usr/share/nodejs/router/lib/route.js:117:3) at handle (/usr/share/nodejs/router/index.js:435:11) at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at /usr/share/nodejs/router/index.js:295:15 at processParams (/usr/share/nodejs/router/index.js:582:12) at next (/usr/share/nodejs/router/index.js:291:5) at Function.handle (/usr/share/nodejs/router/index.js:186:3) at Function.handle (/usr/share/nodejs/express/lib/application.js:177:15) at Server.app (/usr/share/nodejs/express/lib/express.js:38:9) at Server.emit (node:events:524:28) at parserOnIncoming (node:_http_server:1141:12) at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17) 1) passes the redirect status code to beforeRedirect TypeError: Invalid status code: "/b". Status code must be an integer. at ServerResponse.status (/usr/share/nodejs/express/lib/response.js:65:11) at ServerResponse.redirect (/usr/share/nodejs/express/lib/response.js:848:8) at /<<PKGBUILDDIR>>/test/util.js:9:18 at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at next (/usr/share/nodejs/router/lib/route.js:157:13) at Route.dispatch (/usr/share/nodejs/router/lib/route.js:117:3) at handle (/usr/share/nodejs/router/index.js:435:11) at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at /usr/share/nodejs/router/index.js:295:15 at processParams (/usr/share/nodejs/router/index.js:582:12) at next (/usr/share/nodejs/router/index.js:291:5) at Function.handle (/usr/share/nodejs/router/index.js:186:3) at Function.handle (/usr/share/nodejs/express/lib/application.js:177:15) at Server.app (/usr/share/nodejs/express/lib/express.js:38:9) at Server.emit (node:events:524:28) at parserOnIncoming (node:_http_server:1141:12) at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17) 2) passes the request method to beforeRedirect undefined passes the request headers to beforeRedirect undefined passes the request URL to beforeRedirect undefined keeps the header when redirected from HTTP to HTTPS undefined drops the header when redirected from HTTPS to HTTP TypeError: Invalid status code: "/c". Status code must be an integer. at ServerResponse.status (/usr/share/nodejs/express/lib/response.js:65:11) at ServerResponse.redirect (/usr/share/nodejs/express/lib/response.js:848:8) at /<<PKGBUILDDIR>>/test/util.js:9:18 at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at next (/usr/share/nodejs/router/lib/route.js:157:13) at Route.dispatch (/usr/share/nodejs/router/lib/route.js:117:3) at handle (/usr/share/nodejs/router/index.js:435:11) at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at /usr/share/nodejs/router/index.js:295:15 at processParams (/usr/share/nodejs/router/index.js:582:12) at next (/usr/share/nodejs/router/index.js:291:5) at Function.handle (/usr/share/nodejs/router/index.js:186:3) at Function.handle (/usr/share/nodejs/express/lib/application.js:177:15) at Server.app (/usr/share/nodejs/express/lib/express.js:38:9) at Server.emit (node:events:524:28) at parserOnIncoming (node:_http_server:1141:12) at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17) 3) passes the redirect status code to beforeRedirect TypeError: Invalid status code: "/b". Status code must be an integer. at ServerResponse.status (/usr/share/nodejs/express/lib/response.js:65:11) at ServerResponse.redirect (/usr/share/nodejs/express/lib/response.js:848:8) at /<<PKGBUILDDIR>>/test/util.js:9:18 at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at next (/usr/share/nodejs/router/lib/route.js:157:13) at Route.dispatch (/usr/share/nodejs/router/lib/route.js:117:3) at handle (/usr/share/nodejs/router/index.js:435:11) at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at /usr/share/nodejs/router/index.js:295:15 at processParams (/usr/share/nodejs/router/index.js:582:12) at next (/usr/share/nodejs/router/index.js:291:5) at Function.handle (/usr/share/nodejs/router/index.js:186:3) at Function.handle (/usr/share/nodejs/express/lib/application.js:177:15) at Server.app (/usr/share/nodejs/express/lib/express.js:38:9) at Server.emit (node:events:524:28) at parserOnIncoming (node:_http_server:1141:12) at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17) 4) passes the request method to beforeRedirect undefined passes the request headers to beforeRedirect undefined passes the request URL to beforeRedirect undefined keeps the header when redirected from HTTP to HTTPS undefined drops the header when redirected from HTTPS to HTTP TypeError: Invalid status code: "/c". Status code must be an integer. at ServerResponse.status (/usr/share/nodejs/express/lib/response.js:65:11) at ServerResponse.redirect (/usr/share/nodejs/express/lib/response.js:848:8) at /<<PKGBUILDDIR>>/test/util.js:9:18 at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at next (/usr/share/nodejs/router/lib/route.js:157:13) at Route.dispatch (/usr/share/nodejs/router/lib/route.js:117:3) at handle (/usr/share/nodejs/router/index.js:435:11) at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at /usr/share/nodejs/router/index.js:295:15 at processParams (/usr/share/nodejs/router/index.js:582:12) at next (/usr/share/nodejs/router/index.js:291:5) at Function.handle (/usr/share/nodejs/router/index.js:186:3) at Function.handle (/usr/share/nodejs/express/lib/application.js:177:15) at Server.app (/usr/share/nodejs/express/lib/express.js:38:9) at Server.emit (node:events:524:28) at parserOnIncoming (node:_http_server:1141:12) at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17) 5) passes the redirect status code to beforeRedirect TypeError: Invalid status code: "/b". Status code must be an integer. at ServerResponse.status (/usr/share/nodejs/express/lib/response.js:65:11) at ServerResponse.redirect (/usr/share/nodejs/express/lib/response.js:848:8) at /<<PKGBUILDDIR>>/test/util.js:9:18 at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at next (/usr/share/nodejs/router/lib/route.js:157:13) at Route.dispatch (/usr/share/nodejs/router/lib/route.js:117:3) at handle (/usr/share/nodejs/router/index.js:435:11) at Layer.handleRequest (/usr/share/nodejs/router/lib/layer.js:152:17) at /usr/share/nodejs/router/index.js:295:15 at processParams (/usr/share/nodejs/router/index.js:582:12) at next (/usr/share/nodejs/router/index.js:291:5) at Function.handle (/usr/share/nodejs/router/index.js:186:3) at Function.handle (/usr/share/nodejs/express/lib/application.js:177:15) at Server.app (/usr/share/nodejs/express/lib/express.js:38:9) at Server.emit (node:events:524:28) at parserOnIncoming (node:_http_server:1141:12) at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17) 6) passes the request method to beforeRedirect undefined passes the request headers to beforeRedirect undefined passes the request URL to beforeRedirect setTimeout undefined clears timeouts after a successful response undefined clears timeouts after an error response undefined handles errors occuring before a socket is established undefined sets a timeout when the socket already exists undefined destroys the socket after configured inactivity period (104ms) undefined should timeout on the final request undefined should include redirect delays in the timeout undefined overrides existing timeouts should obey a `maxRedirects` property undefined which defaults to 21 undefined which can be set globally undefined set as an option on an individual request the trackRedirects option when not set undefined should not track redirects when set to true 7) should track redirects should switch to safe methods when appropriate when redirecting with status code 300 undefined should reuse GET undefined should reuse HEAD undefined should reuse POST undefined should reuse PUT undefined should reuse DELETE when redirecting with status code 301 undefined should reuse GET undefined should reuse HEAD undefined should switch from POST to GET undefined should reuse PUT undefined should reuse DELETE when redirecting with status code 302 undefined should reuse GET undefined should reuse HEAD undefined should switch from POST to GET undefined should reuse PUT undefined should reuse DELETE when redirecting with status code 303 undefined should reuse GET undefined should reuse HEAD undefined should switch from POST to GET undefined should switch from PUT to GET undefined should switch from DELETE to GET when redirecting with status code 307 undefined should reuse GET undefined should reuse HEAD undefined should reuse POST undefined should reuse PUT undefined should reuse DELETE should handle cross protocol redirects undefined (https -> http -> https) undefined (http -> https -> http) should error on an unsupported protocol redirect undefined (http -> about) should obey a `maxBodyLength` property undefined which defaults to 10MB undefined set globally, on write undefined set per request, on write undefined set globally, on end undefined set per request, on end writing invalid data undefined throws an error when switching from POST to GET undefined should drop the entity and associated headers when redirecting to a different host while the host header is set undefined uses the new host header if redirect host is different undefined uses the location host if redirect host is the same undefined uses the existing host header if redirect host is relative undefined defaults to localhost for relative redirect if no host given when the client passes an header named Authorization undefined ignores it when null undefined keeps the header when redirected to the same host undefined keeps the header when redirected to the same host via header undefined keeps the header when redirected to the same host via header undefined keeps the header when redirected to a subdomain undefined drops the header when redirected to a different host (same hostname and different port) undefined drops the header when redirected to a different host undefined drops the header when redirected from a different host via header when the client passes an header named Proxy-Authorization undefined ignores it when null undefined keeps the header when redirected to the same host undefined keeps the header when redirected to the same host via header undefined keeps the header when redirected to the same host via header undefined keeps the header when redirected to a subdomain undefined drops the header when redirected to a different host (same hostname and different port) undefined drops the header when redirected to a different host undefined drops the header when redirected from a different host via header when the client passes an header named Cookie undefined ignores it when null undefined keeps the header when redirected to the same host undefined keeps the header when redirected to the same host via header undefined keeps the header when redirected to the same host via header undefined keeps the header when redirected to a subdomain undefined drops the header when redirected to a different host (same hostname and different port) undefined drops the header when redirected to a different host undefined drops the header when redirected from a different host via header when the followRedirects option is set to false undefined does not redirect should choose the right agent per protocol undefined (https -> http -> https) should not hang on empty writes undefined when data is the empty string without encoding undefined when data is the empty string with encoding undefined when data is Buffer.from('') end accepts as arguments undefined (none) undefined the empty string undefined a non-empty string undefined a non-empty string and an encoding undefined a non-empty string, an encoding, and a callback undefined a non-empty string and a callback undefined a callback change request options before redirects undefined only call beforeRedirect on redirects, not the inital http call undefined ignore beforeRedirect if not a function undefined append new header with every redirect undefined abort request chain after throwing an error undefined access response header in beforeRedirect when request is going through an HTTP proxy (without a tunnel) 8) redirects to proper URL when Location header is absolute 9) redirects to proper URL when Location header is relative 150 passing (657ms) 9 failing 1) follow-redirects passes the redirect status code to beforeRedirect: Error: error parsing "<!DOCTYPE html>\n<html lang=\"en\ [too-long-redacted] :17)</pre>\n</body>\n</html>\n" caused by: Unexpected token '<', "<!DOCTYPE "... is not valid JSON at /<<PKGBUILDDIR>>/test/util.js:27:16 at ConcatStream.<anonymous> (/usr/share/nodejs/concat-stream/index.js:37:43) at ConcatStream.emit (node:events:536:35) at finishMaybe (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:624:14) at afterWrite (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:470:3) at process.processTicksAndRejections (node:internal/process/task_queues:84:21) 2) follow-redirects passes the request method to beforeRedirect: Error: error parsing "<!DOCTYPE html>\n<html lang=\"en\ [too-long-redacted] :17)</pre>\n</body>\n</html>\n" caused by: Unexpected token '<', "<!DOCTYPE "... is not valid JSON at /<<PKGBUILDDIR>>/test/util.js:27:16 at ConcatStream.<anonymous> (/usr/share/nodejs/concat-stream/index.js:37:43) at ConcatStream.emit (node:events:536:35) at finishMaybe (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:624:14) at afterWrite (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:470:3) at process.processTicksAndRejections (node:internal/process/task_queues:84:21) 3) follow-redirects passes the redirect status code to beforeRedirect: Error: error parsing "<!DOCTYPE html>\n<html lang=\"en\ [too-long-redacted] :17)</pre>\n</body>\n</html>\n" caused by: Unexpected token '<', "<!DOCTYPE "... is not valid JSON at /<<PKGBUILDDIR>>/test/util.js:27:16 at ConcatStream.<anonymous> (/usr/share/nodejs/concat-stream/index.js:37:43) at ConcatStream.emit (node:events:536:35) at finishMaybe (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:624:14) at afterWrite (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:470:3) at process.processTicksAndRejections (node:internal/process/task_queues:84:21) 4) follow-redirects passes the request method to beforeRedirect: Error: error parsing "<!DOCTYPE html>\n<html lang=\"en\ [too-long-redacted] :17)</pre>\n</body>\n</html>\n" caused by: Unexpected token '<', "<!DOCTYPE "... is not valid JSON at /<<PKGBUILDDIR>>/test/util.js:27:16 at ConcatStream.<anonymous> (/usr/share/nodejs/concat-stream/index.js:37:43) at ConcatStream.emit (node:events:536:35) at finishMaybe (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:624:14) at afterWrite (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:470:3) at process.processTicksAndRejections (node:internal/process/task_queues:84:21) 5) follow-redirects passes the redirect status code to beforeRedirect: Error: error parsing "<!DOCTYPE html>\n<html lang=\"en\ [too-long-redacted] :17)</pre>\n</body>\n</html>\n" caused by: Unexpected token '<', "<!DOCTYPE "... is not valid JSON at /<<PKGBUILDDIR>>/test/util.js:27:16 at ConcatStream.<anonymous> (/usr/share/nodejs/concat-stream/index.js:37:43) at ConcatStream.emit (node:events:536:35) at finishMaybe (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:624:14) at afterWrite (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:470:3) at process.processTicksAndRejections (node:internal/process/task_queues:84:21) 6) follow-redirects passes the request method to beforeRedirect: Error: error parsing "<!DOCTYPE html>\n<html lang=\"en\ [too-long-redacted] :17)</pre>\n</body>\n</html>\n" caused by: Unexpected token '<', "<!DOCTYPE "... is not valid JSON at /<<PKGBUILDDIR>>/test/util.js:27:16 at ConcatStream.<anonymous> (/usr/share/nodejs/concat-stream/index.js:37:43) at ConcatStream.emit (node:events:536:35) at finishMaybe (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:624:14) at afterWrite (/usr/share/nodejs/readable-stream/lib/_stream_writable.js:470:3) at process.processTicksAndRejections (node:internal/process/task_queues:84:21) 7) follow-redirects the trackRedirects option when set to true should track redirects: AssertionError [ERR_ASSERTION]: 'text/plain; charset=utf-8' == 'text/plain' + expected - actual -text/plain; charset=utf-8 +text/plain at /<<PKGBUILDDIR>>/test/test.js:988:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 8) follow-redirects when request is going through an HTTP proxy (without a tunnel) redirects to proper URL when Location header is absolute: TypeError: Missing parameter name at index 1: *; visit https://git.new/pathToRegexpError for info at name (/usr/share/nodejs/path-to-regexp/dist/index.js:91:19) at parse (/usr/share/nodejs/path-to-regexp/dist/index.js:108:68) at pathToRegexp (/usr/share/nodejs/path-to-regexp/dist/index.js:265:58) at Object.match (/usr/share/nodejs/path-to-regexp/dist/index.js:234:30) at matcher (/usr/share/nodejs/router/lib/layer.js:86:23) at new Layer (/usr/share/nodejs/router/lib/layer.js:93:62) at Function.route (/usr/share/nodejs/router/index.js:428:17) at Function.route (/usr/share/nodejs/express/lib/application.js:257:22) at Function.all (/usr/share/nodejs/express/lib/application.js:495:20) at Context.<anonymous> (test/test.js:2303:14) at callFn (/usr/share/nodejs/mocha/lib/runnable.js:364:21) at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:352:5) at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10) at /usr/share/nodejs/mocha/lib/runner.js:800:12 at next (/usr/share/nodejs/mocha/lib/runner.js:592:14) at /usr/share/nodejs/mocha/lib/runner.js:602:7 at next (/usr/share/nodejs/mocha/lib/runner.js:485:14) at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5) at process.processImmediate (node:internal/timers:483:21) 9) follow-redirects when request is going through an HTTP proxy (without a tunnel) redirects to proper URL when Location header is relative: TypeError: Missing parameter name at index 1: *; visit https://git.new/pathToRegexpError for info at name (/usr/share/nodejs/path-to-regexp/dist/index.js:91:19) at parse (/usr/share/nodejs/path-to-regexp/dist/index.js:108:68) at pathToRegexp (/usr/share/nodejs/path-to-regexp/dist/index.js:265:58) at Object.match (/usr/share/nodejs/path-to-regexp/dist/index.js:234:30) at matcher (/usr/share/nodejs/router/lib/layer.js:86:23) at new Layer (/usr/share/nodejs/router/lib/layer.js:93:62) at Function.route (/usr/share/nodejs/router/index.js:428:17) at Function.route (/usr/share/nodejs/express/lib/application.js:257:22) at Function.all (/usr/share/nodejs/express/lib/application.js:495:20) at Context.<anonymous> (test/test.js:2303:14) at callFn (/usr/share/nodejs/mocha/lib/runnable.js:364:21) at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:352:5) at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10) at /usr/share/nodejs/mocha/lib/runner.js:800:12 at next (/usr/share/nodejs/mocha/lib/runner.js:592:14) at /usr/share/nodejs/mocha/lib/runner.js:602:7 at next (/usr/share/nodejs/mocha/lib/runner.js:485:14) at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5) at process.processImmediate (node:internal/timers:483:21) dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 9 make: *** [debian/rules:8: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- -- Pkg-javascript-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
