Closed kaioduarte closed 1 year ago
Thanks for the report, this should be handled by the sdk itself and we are investigating
Hey @kaioduarte, I ran this locally and was able to get the exact same error, but these are caught and simply logged as a warning. The server should still be running after this.
Here is the exact line where this is getting printed out https://github.com/statsig-io/node-js-server-sdk/blob/main/src/SpecStore.ts#L477
We will retry to sync the id lists, so this is only really a warning.
Do you have more context that could point to this actually crashing the node process?
Hi @daniel-statsig! Thanks for pointing out the source of the error, so it seems unrelated to the issue we have. GCP makes console.error
output too prominent in the errors list, which misleads us sometimes.
I'm closing the issue, thanks again!
Sorry for the confusion, I'll update it to console.warn, since that better reflects what this is. Good luck on finding the real cause.
We are facing random timeouts when updating the ID Lists, and as they are unhandled exceptions it makes the server instance die.
Any advice? Or should it be handled on the lib side and only logged as an error?