Why am I Getting an 'Error Communicating with Data Store' in My Pipedream Workflow Despite Being Below the Storage Limit?

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

Hi, everyone,
I continuously get an error in my pipedream workflow:
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)

Failing step tries to write some value (small JSON) into the data store. I took a look at glance, but found nothing except the mention about out of quote in current plan. But looks like my storage usage is below limit and I didn’t find any other limit constraints.

Hey , would you mind sharing your code if possible?

Sure:

export default defineComponent({
props: {
myDataStore: {
type: “data_store”,
},
},
async run({ steps, $ }) {
const { event } = steps.trigger.event.body ?? {};

if (!event) {
  return null;
}

const key = `${event.targetName} ${event.eventType}`;
const current = await this.myDataStore.get(key);

// take the first value available
const value = event.data;

if (!value) {
  return;
}

await this.myDataStore.set(key, value);
return null;

},
})

But, I don’t what happens. I removed data source from the pipe step and added it again and now it works again.

I cleaned up the target data store before, through it didn’t complain about the limits. So, maybe it is somehow related.

It maybe because of the limit. Please feel free to report again if you faced similar issue

Confirmed, this was because of out of limits in data store.