Error: HTTP error! status: 422, body: {"error":"observation error","err":null,"observations":[{"k":"hook","ts":1744626456352,"h":"activate"},{"k":"db.get","ts":1744626456551,"pn":"db","key":"webhookId"},{"k":"error","ts":1744626456553,"err":{"name":"TypeError","message":"Cannot read properties of undefined (reading 'endpoint')","stack":"TypeError: Cannot read properties of undefined (reading 'endpoint')\n at Object.createWebhook (file:///tmp/__pdg__/dist/code/c3b2d0e5edbefa064cd8e67b81ff4612a6e85259e403c1219943477e7eb69e82/code/sources/common/common-flex.mjs:109:28)\n at Object.checkWebhookCreation (file:///tmp/__pdg__/dist/code/c3b2d0e5edbefa064cd8e67b81ff4612a6e85259e403c1219943477e7eb69e82/code/sources/common/common-flex.mjs:85:20)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.activate (file:///tmp/__pdg__/dist/code/c3b2d0e5edbefa064cd8e67b81ff4612a6e85259e403c1219943477e7eb69e82/code/sources/common/common-flex.mjs:214:7)\n at async /var/task/node_modules/@lambda-v2/component-runtime/src/deployedComponentMain.js:78:13\n at async captureObservations (/var/task/node_modules/@lambda-v2/component-runtime/src/captureObservations.js:28:5)\n at async deployedComponentMain (/var/task/node_modules/@lambda-v2/component-runtime/src/deployedComponentMain.js:44:20)\n at async MessagePort.\u003canonymous\u003e (file:///var/task/component_maker.mjs:181:9)"}}]}
at x.makeRequest (file:///Users/hamzapy/Documents/PookiDevs/Projects/Pooki-MCP-Servers/node_modules/@pipedream/sdk/dist/chunk-G7ULQDUE.js:1:1744)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async test (file:///Users/hamzapy/Documents/PookiDevs/Projects/Pooki-MCP-Servers/routes/composio.js:267:37)
I am getting this same error for triggerId: ‘gmail-new-email-received’ too.
Use our demo app to see what are the values for configuredProps that you need! Go through the form and configure everything you need there and after clicking on submit, you’ll see configured_props in the payload where you can copy and paste to your app
Attached is the screenshot with the payload including the above props.
Still the same error.
I think the error is in the specific file for Github triggers?
Did you call reloadProps after configuring the repo? That should return the new set of configurable props that you need to define (it’s actually not$.service.db and $.interface.http), but it should also return eventTypes, which is expecting an array of event types that you want to subscribe to
If there are dynamic props that are returned, then yes you’ll need to keep that dynamicPropsId in state and include it in the payload (but not all triggers / actions require it)