Crashes when connecting to expressJS server
Posted: Thu Aug 08, 2024 4:37 pm
Hello, I have doubts regarding a problem I am facing. I am using an ESP32-S2 to continuously capture images and sending them to a server, however I am having image crashes, to try to solve the problem I used FreeRTOS to make the program more fluid, however I still face the same problem, I used wireshark to see what could be happening and noticed the following excerpt:
686321 8797.576528 IPESP32 IPPC TCP 54 P56096 → P3000 [RST, ACK] Seq=24297 Ack=230 Win=32790 Len=0
It seems that for some reason esp32 is forcing the connection to be disconnected and generally this happens after a [FIN, PSH, ACK] from the server which generates the following failure after forcing the restart:
BadRequestError: request aborted
at IncomingMessage.onAborted (C:\Users\SZ-Matheus\Documents\ElectronPro\ProjetoTeste\node_modules\raw-body\index.js:245:10)
at IncomingMessage.emit (node:events:519:28)
at IncomingMessage._destroy (node:_http_incoming:224:10)
at _destroy (node:internal/streams/destroy:121:10)
at IncomingMessage.destroy (node:internal/streams/destroy:83:5)
at abortIncoming (node:_http_server:797:9)
at socketOnClose (node:_http_server:791:3)
at Socket.emit (node:events:531:35)
at TCP.<anonymous> (node:net:338:12)
Has anyone ever experienced this?
Thank you for understanding, sorry for the long text.
686321 8797.576528 IPESP32 IPPC TCP 54 P56096 → P3000 [RST, ACK] Seq=24297 Ack=230 Win=32790 Len=0
It seems that for some reason esp32 is forcing the connection to be disconnected and generally this happens after a [FIN, PSH, ACK] from the server which generates the following failure after forcing the restart:
BadRequestError: request aborted
at IncomingMessage.onAborted (C:\Users\SZ-Matheus\Documents\ElectronPro\ProjetoTeste\node_modules\raw-body\index.js:245:10)
at IncomingMessage.emit (node:events:519:28)
at IncomingMessage._destroy (node:_http_incoming:224:10)
at _destroy (node:internal/streams/destroy:121:10)
at IncomingMessage.destroy (node:internal/streams/destroy:83:5)
at abortIncoming (node:_http_server:797:9)
at socketOnClose (node:_http_server:791:3)
at Socket.emit (node:events:531:35)
at TCP.<anonymous> (node:net:338:12)
Has anyone ever experienced this?
Thank you for understanding, sorry for the long text.