PipedreamHQ / PipedreamHQ/pipedream
[BUG] Github triggers are not working
- Dominant language
- JavaScript
- Stars
- 11.7k
- Forks
- 5.8k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 102
Description
**Describe the bug**
I am integrating @pipedream/sdk in my Node.js application.
I am using this function to deploy a trigger:
```
const { data: deployedTrigger } = await pd.deployTrigger({
externalUserId: "testing-pookiy",
triggerId: {
key: "github-new-or-updated-pull-request"
},
configuredProps: {
github: {
authProvisionId: "apn_yghMzMj",
},
repoFullname: 'HamzaPooki/Testing_repo'
},
webhookUrl: "https://2e41-182-183-42-220.ngrok-free.app/api/composio/pipedream-webhook"
});
```
But I am getting this error:
`Error: HTTP error! status: 422, body: {"error":"observation error","err":null,"observations":[{"k":"hook","ts":1744628402194,"h":"activate"},{"k":"db.get","ts":1744628402428,"pn":"db","key":"webhookId"},{"k":"error","ts":1744628402429,"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)`
This is happening for all of the triggers (sources) of Github.
**To Reproduce**
Steps to reproduce the behavior:
1. Execute function (deployTrigger) with Github source.
2. You will get "Cannot read properties of undefined (reading 'endpoint')" error.
**Desktop (please complete the following information):**
- OS: MacOS
- Browser chrome
- Version 15.2
Contributor guide
Assessment
This issue has not been assessed yet.