Open Tsjippy opened 5 days ago
I think the browser is not able to start due to architecture of your board. Try to install it from your repository and point the CHROME_BIN env to the executable.
thanks for the quick reply.
That at least changed things.
Timed out waiting for nested object
Timed out waiting for nested object
node:_http_outgoing:699
throw new ERR_HTTP_HEADERS_SENT('set');
^
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (node:_http_outgoing:699:11)
at ServerResponse.header (/home/pi/whatsapp-api/node_modules/express/lib/response.js:794:10)
at ServerResponse.send (/home/pi/whatsapp-api/node_modules/express/lib/response.js:174:12)
at ServerResponse.json (/home/pi/whatsapp-api/node_modules/express/lib/response.js:278:15)
at sendErrorResponse (/home/pi/whatsapp-api/src/utils.js:12:22)
at /home/pi/whatsapp-api/src/controllers/sessionController.js:47:25
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 'ERR_HTTP_HEADERS_SENT'
}
Node.js v22.11.0
If I run the url http://192.168.0.202:3000/session/qr/test
again this is what I get:{"success":false,"error":"Session already exists for: test"}
@Tsjippy the ERR_HTTP_HEADERS_SENT
error has been fixed and awaits @chrishubert approve
Thank you.
for now I will just runs the thing on my laptop and copy the session folder to my rpi. See if that works
Thank you for this great package.
I have installed it on a rpi3b. I access it fro a winows 11 machine
This command
http://192.168.0.202:3000/session/start/test
runs fine.But this command
http://192.168.0.202:3000/session/qr/test
leads to the following error: