How to Trigger and Debug the `deploy` Function after Deploying a Broken Source Code using the CLI?

What is the source ID? I’d like to take a look at it, it starts with dc_ in the URL

the only thing that seems to work is the very specific case of pulling history when running the cli.

sec

dc_AjuZP8B

Thanks, looking

In the common file, try changing the line 25 to
const response = await this.discourse.createHook({
and log that response

And see if you get anything on the deploy logs

just gonna finish comparing the call in inspector one sec

Np

Oh sorry I meant the activate logs

That’s the payload generated by discourse fwiw

no, I’m just showing you

AH yeah was just correcting what I said before

Let me see the screenshot

haha

it’s form encoded… wonder if we’re sending json

ok let me add the logging

025-01-22T12:31:21
error
ReferenceError: id is not defined
at Object.activate (file:///var/task/user/common.mjs:30:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.activate (file:///var/task/user/sources/new-posts-added/new-posts-added.mjs:30:7)
at async /var/task/index.js:95:13
at async captureObservations (/var/task/node_modules/@lambda-v2/component-runtime/src/captureObservations.js:28:5)
at async exports.main [as handler] (/var/task/index.js:60:20)
web_hook[payload_url]: https://webhook-test.com/6f5727742e8423d295a97e59549aef9d
web_hook[content_type]: 1
web_hook[wildcard_web_hook]: false
web_hook[verify_certificate]: true
web_hook[active]: true
web_hook[web_hook_event_type_ids][]: 201
web_hook[web_hook_event_type_ids][]: 202
web_hook[web_hook_event_type_ids][]: 203
web_hook[web_hook_event_type_ids][]: 204
web_hook[category_ids][]: 
web_hook[tag_names][]: 
web_hook[group_ids][]: