When importing mysql2 and setting the value of lines in a setInterval it gives an EPERM error #30
Labels
bug
Something isn't working
gpiod-1.x
all related to underlying libgpiod-1.x series
help wanted
Extra attention is needed
tests
some kind of test (unit, functional, real hardware) is needed
This is a very strange issue, see below a piece of code that works, but when you
require('mysql2')
it stops working and gives the following error:Also worth to mention is that this error only occurs when requiring mysql2 and calling the setValue in a setTimeout or setInterval
Code:
Versions:
Node: v20.13.1
mysql2: 3.9.8
node-libgpiod: 0.4.3
ubuntu: Ubuntu 24.04 LTS
Raspberry Pi 5B rev 1.0
The text was updated successfully, but these errors were encountered: