Answer the question
In order to leave comments, you need to log in
How to use setInterval in express js project?
There is a parser function. I want to call it constantly, after a certain period of time. setInterval(parser(1, 0), 180000);
But the second time I get an error in the console:
timers.js:265
callback.apply(this, args);
^
TypeError: Cannot read property 'apply' of undefined
at wrapper [as _onTimeout] (timers.js:265:13)
at Timer.listOnTimeout (timers.js:110:15)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question