[Pkg-javascript-devel] Bug#1117758: node-express: FTBFS: Error: expected '{}' response body, got ''
Santiago Vila
sanvila at debian.org
Fri Oct 10 17:27:28 BST 2025
Package: src:node-express
Version: 4.21.2+~cs8.36.27-3
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/202510/
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-express, 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
Found debian/nodejs/additional_components
Adding component(s): debian/build_modules/path-to-regexp
rm -rf ./node_modules/.cache ./.nyc_output
rm -rf debian/build_modules/path-to-regexp/node_modules/.cache debian/build_modules/path-to-regexp/.nyc_output
rm -rf types-express/node_modules/.cache types-express/.nyc_output
rm -rf types-express-serve-static-core/node_modules/.cache types-express-serve-static-core/.nyc_output
Found debian/nodejs/additional_components
Adding component(s): debian/build_modules/path-to-regexp
rm ./node_modules/.cache
rm debian/build_modules/path-to-regexp/node_modules/.cache
rm types-express/node_modules/.cache
rm types-express-serve-static-core/node_modules/.cache
[... snipped ...]
10) express.text()
with type option
when "text/html"
should ignore standard type:
Error: expected '{}' response body, got ''
+ expected - actual
+{}
at Context.<anonymous> (test/express.text.js:250:12)
at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:392:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:336:7)
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)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
----
at error (/usr/share/nodejs/supertest/lib/test.js:335:15)
at Test._assertBody (/usr/share/nodejs/supertest/lib/test.js:206:16)
at /usr/share/nodejs/supertest/lib/test.js:308:13
at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:285:13)
at Test.assert (/usr/share/nodejs/supertest/lib/test.js:164:23)
at Server.localAssert (/usr/share/nodejs/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:638:28)
at Server.emit (node:events:524:28)
at emitCloseNT (node:net:2338:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
11) express.text()
with type option
when ["text/html", "text/plain"]
should ignore "text/xml":
Error: expected '{}' response body, got ''
+ expected - actual
+{}
at Context.<anonymous> (test/express.text.js:280:12)
at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:392:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:336:7)
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)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
----
at error (/usr/share/nodejs/supertest/lib/test.js:335:15)
at Test._assertBody (/usr/share/nodejs/supertest/lib/test.js:206:16)
at /usr/share/nodejs/supertest/lib/test.js:308:13
at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:285:13)
at Test.assert (/usr/share/nodejs/supertest/lib/test.js:164:23)
at Server.localAssert (/usr/share/nodejs/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:638:28)
at Server.emit (node:events:524:28)
at emitCloseNT (node:net:2338:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
12) express.text()
async local storage
should presist store when unmatched content-type:
Error: expected '{}' response body, got ''
+ expected - actual
+{}
at Context.<anonymous> (test/express.text.js:448:10)
at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:392:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:336:7)
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)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
----
at error (/usr/share/nodejs/supertest/lib/test.js:335:15)
at Test._assertBody (/usr/share/nodejs/supertest/lib/test.js:206:16)
at /usr/share/nodejs/supertest/lib/test.js:308:13
at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:285:13)
at Test.assert (/usr/share/nodejs/supertest/lib/test.js:164:23)
at Server.localAssert (/usr/share/nodejs/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:638:28)
at Server.emit (node:events:524:28)
at emitCloseNT (node:net:2338:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
13) express.urlencoded()
should 500 if stream not readable:
Error: expected 500 "Internal Server Error", got 200 "OK"
at Context.<anonymous> (test/express.urlencoded.js:88:8)
at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:392:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:336:7)
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)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
----
at Test._assertStatus (/usr/share/nodejs/supertest/lib/test.js:252:14)
at /usr/share/nodejs/supertest/lib/test.js:308:13
at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:285:13)
at Test.assert (/usr/share/nodejs/supertest/lib/test.js:164:23)
at Server.localAssert (/usr/share/nodejs/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:638:28)
at Server.emit (node:events:524:28)
at emitCloseNT (node:net:2338:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
14) express.urlencoded()
should parse extended syntax:
Error: expected '{"user":{"name":{"first":"Tobi"}}}' response body, got '{"user[name][first]":"Tobi"}'
at Context.<anonymous> (test/express.urlencoded.js:113:8)
at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:392:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:336:7)
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)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
----
at error (/usr/share/nodejs/supertest/lib/test.js:335:15)
at Test._assertBody (/usr/share/nodejs/supertest/lib/test.js:206:16)
at /usr/share/nodejs/supertest/lib/test.js:308:13
at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:285:13)
at Test.assert (/usr/share/nodejs/supertest/lib/test.js:164:23)
at Server.localAssert (/usr/share/nodejs/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:638:28)
at Server.emit (node:events:524:28)
at emitCloseNT (node:net:2338:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
15) express.urlencoded()
with type option
when "application/vnd.x-www-form-urlencoded"
should ignore standard type:
Error: expected '{}' response body, got ''
+ expected - actual
+{}
at Context.<anonymous> (test/express.urlencoded.js:476:12)
at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:392:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:336:7)
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)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
----
at error (/usr/share/nodejs/supertest/lib/test.js:335:15)
at Test._assertBody (/usr/share/nodejs/supertest/lib/test.js:206:16)
at /usr/share/nodejs/supertest/lib/test.js:308:13
at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:285:13)
at Test.assert (/usr/share/nodejs/supertest/lib/test.js:164:23)
at Server.localAssert (/usr/share/nodejs/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:638:28)
at Server.emit (node:events:524:28)
at emitCloseNT (node:net:2338:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
16) express.urlencoded()
with type option
when ["urlencoded", "application/x-pairs"]
should ignore application/x-foo:
Error: expected '{}' response body, got ''
+ expected - actual
+{}
at Context.<anonymous> (test/express.urlencoded.js:508:12)
at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:392:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:336:7)
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)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
----
at error (/usr/share/nodejs/supertest/lib/test.js:335:15)
at Test._assertBody (/usr/share/nodejs/supertest/lib/test.js:206:16)
at /usr/share/nodejs/supertest/lib/test.js:308:13
at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:285:13)
at Test.assert (/usr/share/nodejs/supertest/lib/test.js:164:23)
at Server.localAssert (/usr/share/nodejs/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:638:28)
at Server.emit (node:events:524:28)
at emitCloseNT (node:net:2338:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
17) express.urlencoded()
async local storage
should presist store when unmatched content-type:
Error: expected '{}' response body, got ''
+ expected - actual
+{}
at Context.<anonymous> (test/express.urlencoded.js:693:10)
at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:392:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:336:7)
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)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
----
at error (/usr/share/nodejs/supertest/lib/test.js:335:15)
at Test._assertBody (/usr/share/nodejs/supertest/lib/test.js:206:16)
at /usr/share/nodejs/supertest/lib/test.js:308:13
at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:285:13)
at Test.assert (/usr/share/nodejs/supertest/lib/test.js:164:23)
at Server.localAssert (/usr/share/nodejs/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:638:28)
at Server.emit (node:events:524:28)
at emitCloseNT (node:net:2338:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
18) cookies
POST /
should no set cookie w/o reminder:
Error: expected 302 "Found", got 500 "Internal Server Error"
at Context.<anonymous> (test/acceptance/cookies.js:68:8)
at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:392:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:336:7)
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)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
----
at Test._assertStatus (/usr/share/nodejs/supertest/lib/test.js:252:14)
at /usr/share/nodejs/supertest/lib/test.js:308:13
at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:285:13)
at Test.assert (/usr/share/nodejs/supertest/lib/test.js:164:23)
at Server.localAssert (/usr/share/nodejs/supertest/lib/test.js:120:14)
at Object.onceWrapper (node:events:638:28)
at Server.emit (node:events:524:28)
at emitCloseNT (node:net:2338:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 18
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-javascript-devel
mailing list