Facing a NaN error code

Hi, I am working on adding rows to the smart sheet using JavaScript Node.js SDK, but I am facing this error, the error does not give me the error message and error code.

This is the smart sheet error message

 Error Code: NaN - Cannot read properties of undefined (reading 'status')

    Ref ID: undefined

(node:7328) Warning: a promise was rejected with a non-error: [object Object]

Can anyone help me, let me know why I am seeing NaN in the error code and How I can fix this issue.

Sometimes the data is added and sometime it throws this NaN error.

Answers