ECONNRESET random bug in my python worflow

I am getting this error quite frequently on various of my workflow but I am not realy sure where it is coming from and what cause that, I have added the code in pyhton I am running this specific workflow after but I am mainly doing some max calculations and sum from a table for a specific date which should work all the time

Error: read ECONNRESET
    at __node_internal_captureLargerStackTrace (internal/errors.js:412:5)
    at __node_internal_errnoException (internal/errors.js:542:12)
    at Pipe.onStreamRead (internal/stream_base_commons.js:209:20)

CODE WORKFLOW

def handler(pd: “pipedream”):

importing pandas as pd

import pandas as pda
import numpy as np

define today

today = pd.steps[“Get_today”][“$return_value”][“today”]
print(today)

return Oura ring data

data = pd.steps[“get_Rescuetime_values_embedded_C”][“$return_value”]
df1 = pda.DataFrame(data, columns=[‘Time Stamp EmbeddedC’,‘Date-embeddedC’,‘Time_embeddedC’, ‘Category’,‘Hours_embeddedC’])
print(df1)
df1 = df1[(df1.Category == “Embedded C”)]
print(df1)
df1 = df1.drop([‘Time Stamp EmbeddedC’,‘Time_embeddedC’, ‘Category’], axis=1)
print(df1)

df1 = df1.drop(df1.index[0])
print(df1)
df1 = df1.set_index(‘Date-embeddedC’)
df1 = pda.DataFrame(df1, columns=[‘Hours_embeddedC’])
#df1[‘Hours_embeddedC’] = df1[‘Hours_embeddedC’].astype(float)
print(df1)

df1 = df1.groupby([‘Date-embeddedC’], sort=False)[‘Hours_embeddedC’].max()
print(df1)
print(today)

total_hours_embeddedC = 0

if (today in set(df1.index)):
print(“value present”)
total_hours_embeddedC = float(df1.loc[today])
else:
print(“Not in index”)
total_hours_embeddedC = 0

print(total_hours_embeddedC)

return {“total_hours_embeddedC”: total_hours_embeddedC}

Hello @baugustyn1000, in order for me to reproduce you issue, could you put your code into the code block so that I can easier copy & paste?

On another note, it would be a great help if you can help us to create a Bug Github issue with reproduce steps on Pipedream repo so that our component dev can try to take a look