Hey folks, we're having an issue with the node sdk...
# support
f
Hey folks, we're having an issue with the node sdk version 2.0.2^. It seems when we start to send a significant number of events (10,000+), sometimes empty batches are being flushed out and we're getting a 400 error for invalid JSON from rudderstack. IE:
'{"batch":[],"timestamp":"2023-08-29T13:23:08.154Z","sentAt":"2023-08-29T13:23:08.154Z"}'
Incase it's of any relevance, we're initializing the analytics object with the following options:
Copy code
analytics = new Analytics(--CONFIG--, {
    maxQueueSize: 250_000,
    maxInternalQueueSize: 10_000,
    dataPlaneUrl: --CONFIG--,
    errorHandler: (error) => {
      reportErrorForInvestigation(error);
    },
  });
I don't see anywhere where we could be tracking empty messages, is it possible we're doing something wrong or could this be bug? Anything helps.
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hey Nicholas let me check on this
So can you retry with the latest version of nodeJS SDK 2.0.4, the team made a hotfix for this issue. Checkout the version here