Node Error : Max API Message Request timed out
Alex Guillard
Sep 07 2021 | 10:30 pm
Hello there,
I have some kind of problems with the Node API for Max.
Recently, I created a way to communicate in TCP with 2 Max applications installed on 2 different computers. To do that, I just use a Node JS server and client, with the node.script object. Everything works fine actually and I can communicate between the 2 computers, except that sometimes, after a while, the Node Max API gives me this timeout error :
Max API Message Request timed out. id: u52248380302
Error: Max API Message Request timed out. id: u52248380302
at makeError (C:\Users\XXX\max_project\resources\packages\Node For Max\source\lib\api\index.js:9:14)
at Timeout._onTimeout (C:\Users\XXX\max_project\resources\packages\Node For Max\source\lib\api\index.js:178:12)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
I tried to increase the time before timeout in the index.js file, but nothing helps.
When I start to use the client/server, I bombard with messages, but it doesn't crash. It's only after a while that it does that... Has anyone ever encountered this problem and know where it may be coming from ?
Thanks in advance!
Alex