How to Debug and Retry "Error Communicating with Data Store" in Lambda?

This topic was automatically generated from Slack. You can find the original thread here.

Hello, sometimes I am having this error:
Error
Error communicating with data store

    at null.createError (/var/task/node_modules/@lambda-v2/component-runtime/node_modules/axios/lib/core/createError.js:16:15)
    at null.settle (/var/task/node_modules/@lambda-v2/component-runtime/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/var/task/node_modules/@lambda-v2/component-runtime/node_modules/axios/lib/adapters/http.js:236:11)
    at IncomingMessage.emit (events.js:412:35)
    at null.endReadableNT (internal/streams/readable.js:1333:12)
    at process.processTicksAndRejections (internal/process/task_queues.js:82:21)

Can you please advice how to debug why it is happening and how I can retry in several seconds?

We’ve investigating a high load on our redis cluster, this might be related. I’ll let you know when we’ve addressed it so you can retest.