whenever I run cody in any buffer I get it working for about a minute and it provides completions no problem, then after about a minute emacs hangs (most likely waiting for something as neither emacs nor cody processes are consuming CPU when I checked), then the server stops completion, I have to logout and then login again to make it work and again for about a minute and then the same thing happens.
{"stack":"Error: Timeout\n at Timeout._onTimeout (/mnt/rese-home/rese/.emacs.d/emacs-cody/dist/index.js:300564:20)\n at listOnTimeout (node:internal/timers:573:17)\n at process.processTimers (node:internal/timers:514:7)","message":"Timeout","name":"Error"}
Content-Length: 47
{"jsonrpc":"2.0","id":74,"result":{"items":[]}}Content-Length: 156
{"jsonrpc":"2.0","method":"debug/message","params":{"channel":"Cody by Sourcegraph","message":"█ telemetry-v2: recordEvent: cody.completion/noResponse "}}Content-Length: 47
{"jsonrpc":"2.0","id":75,"result":{"items":[]}}Content-Length: 156
{"jsonrpc":"2.0","method":"debug/message","params":{"channel":"Cody by Sourcegraph","message":"█ telemetry-v2: recordEvent: cody.completion/noResponse "}}Content-Length: 47
{"jsonrpc":"2.0","id":76,"result":{"items":[]}}Content-Length: 51
{"jsonrpc":"2.0","id":77,"result":{"success":true}}{"stack":"Error: Timeout\n at Timeout._onTimeout (/mnt/rese-home/rese/.emacs.d/emacs-cody/dist/index.js:300564:20)\n at listOnTimeout (node:internal/timers:573:17)\n at process.processTimers (node:internal/timers:514:7)","message":"Timeout","name":"Error"}
Content-Length: 151
{"jsonrpc":"2.0","method":"debug/message","params":{"channel":"Cody by Sourcegraph","message":"█ UpstreamHealth: Ping took 379ms (Gateway: 505ms) "}}{"stack":"Error: Timeout\n at Timeout._onTimeout (/mnt/rese-home/rese/.emacs.d/emacs-cody/dist/index.js:300564:20)\n at listOnTimeout (node:internal/timers:573:17)\n at process.processTimers (node:internal/timers:514:7)","message":"Timeout","name":"Error"}
Content-Length: 151
{"jsonrpc":"2.0","method":"debug/message","params":{"channel":"Cody by Sourcegraph","message":"█ UpstreamHealth: Ping took 518ms (Gateway: 583ms) "}}{"stack":"Error: Timeout\n at Timeout._onTimeout (/mnt/rese-home/rese/.emacs.d/emacs-cody/dist/index.js:300564:20)\n at listOnTimeout (node:internal/timers:573:17)\n at process.processTimers (node:internal/timers:514:7)","message":"Timeout","name":"Error"}
whenever I run cody in any buffer I get it working for about a minute and it provides completions no problem, then after about a minute emacs hangs (most likely waiting for something as neither emacs nor cody processes are consuming CPU when I checked), then the server stops completion, I have to logout and then login again to make it work and again for about a minute and then the same thing happens.
I have this output in the * cody-$DIR output * buffer:
I tested it with node 16.4, 20.4, 21.7 and it does the same thing across the three of them.
I have emacs 29.4.50 with jsonrpc version 1.0.25 and running on ubuntu 18.04