You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running 10s test @ http://127.0.0.1:8000/put
30 connections
3 workers
Worker error: Error: body must be either a string or a buffer
at RequestIterator.buildRequest [as requestBuilder] (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/httpRequestBuilder.js:83:13)
at RequestIterator.rebuildRequest (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:108:17)
at /Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:74:12
at Array.forEach (<anonymous>)
at RequestIterator.setRequests (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:71:17)
at new RequestIterator (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:35:8)
at new Client (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/httpClient.js:36:26)
at initialiseClients (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/run.js:210:22)
at run (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/run.js:86:3)
at runTracker (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/worker.js:29:19)
body must be either a string or a buffer
Worker error: Error: body must be either a string or a buffer
at RequestIterator.buildRequest [as requestBuilder] (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/httpRequestBuilder.js:83:13)
at RequestIterator.rebuildRequest (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:108:17)
at /Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:74:12
at Array.forEach (<anonymous>)
at RequestIterator.setRequests (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:71:17)
at new RequestIterator (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:35:8)
at new Client (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/httpClient.js:36:26)
at initialiseClients (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/run.js:210:22)
at run (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/run.js:86:3)
at runTracker (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/worker.js:29:19)
Worker error: Error: body must be either a string or a buffer
at RequestIterator.buildRequest [as requestBuilder] (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/httpRequestBuilder.js:83:13)
at RequestIterator.rebuildRequest (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:108:17)
at /Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:74:12
at Array.forEach (<anonymous>)
at RequestIterator.setRequests (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:71:17)
at new RequestIterator (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/requestIterator.js:35:8)
at new Client (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/httpClient.js:36:26)
at initialiseClients (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/run.js:210:22)
at run (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/run.js:86:3)
at runTracker (/Users/jsumners/.npm/_npx/0192e65d342ecc83/node_modules/autocannon/lib/worker.js:29:19)
If we alter the autocanon command to:
npx autocannon -d 10 -c 30 -m PUT -H content-type="application/x-www-form-urlencoded" -b "1" 127.0.0.1:8000/put
# Note the removal of "-w 3"
Then we get simply:
body must be either a string or a buffer
The text was updated successfully, but these errors were encountered:
Given the
index.js
:Start the server and then run:
The result will be:
If we alter the
autocanon
command to:Then we get simply:
The text was updated successfully, but these errors were encountered: