- 
                Notifications
    
You must be signed in to change notification settings  - Fork 5.5k
 
Closed
Labels
bugSomething isn't workingSomething isn't workingtriagedFor maintainers: This issue has been triaged by a Pipedream employeeFor maintainers: This issue has been triaged by a Pipedream employee
Description
HTTP error! status: 422, body: {"error":"observation error","err":null,"observations":[{"k":"hook","ts":1759435524695,"h":"deploy"},{"k":"db.get","ts":1759435524695,"pn":"db","key":"lastTs"},{"k":"error","ts":1759435526917,"err":{"name":"TypeError","message":"Cannot read properties of undefined (reading 'ts')","stack":"TypeError: Cannot read properties of undefined (reading 'ts')
    at Object.startEvent (file:///tmp/__pdg__/dist/code/195ce32b80e8f7703d7da12b2aefdecd452482a7560bd97e1d4f9ceefdf23819/code/sources/common/base.mjs:48:56)
In components\frontapp\sources\common\base.mjs, the startEvent method sets the lastTs to the return value of _getEmit (obtaining the event to be emitted for the first item of the array) and throws an error when reading the ts property. This is likely because the "New Conversation Tag" component's _getEmit method does not always return a value - it has a condition, so if that is not met it returns undefined, resulting in this error.
While this condition probably makes sense for the component, we need to ensure the first timestamp can be saved properly without throwing an error.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriagedFor maintainers: This issue has been triaged by a Pipedream employeeFor maintainers: This issue has been triaged by a Pipedream employee
Type
Projects
Status
Done