Hello,
I'm encountering a [404] NOT_FOUND error when using a webhook to retrieve a record ID from Airtable, and I'm struggling to figure out the cause. It's quite frustrating!
Please see the video of the issue here and the screenshots below: Content Blog with Webflow and OpenAI GPT: Content themes & shows - Airtable
The script appears to be functioning correctly during testing but isn't transferring the data to Airtable via callin.io.
Any assistance would be greatly appreciated!
Thank you,
James
Welcome to the callin.io community!
Your Record ID
is undefined because your input variable is recordId
, but your Airtable input is recordid
Variable raw names are case-sensitive.
If you still require assistance,
Please share the output bundles from the Custom Webhook module after running the scenario. Then, click the white speech bubble located at the top-right of each module. Save the bundle contents in your text editor as a bundle.json
file and upload it here.
Providing the output bundles will enable others to replicate the scenario's behavior, even if they don't use the external service.
This will help others assist you more effectively. Thank you!
Hello,
That’s a useful observation, but unfortunately, it hasn't resolved the issue for me.
Here is the output bundle from the webhook as requested:
json
[
{
"recordId": "undefined"
}
]
For your verification, please examine the input in Airtable here:
I'm unsure how to create a bundle.json file. I've searched online but haven't found clear instructions. It always saves as plain text, and then callin.io won't allow me to upload it. My apologies, but I hope this information is helpful!
Thank you very much!
James
In your Airtable script, it appears you need to use this instead:
javascript
const [ recordId ] = input.config();
That's strange, this is almost identical to what's in their documentation:
Maybe we should follow the example precisely:
let inputConfig = input.config();
const response = await fetch(`${webhookUrl}?recordId=${inputConfig['recordId']}`)
Hi there,
Thanks, and apologies for needing to ask, but what should I copy and paste?
Unfortunately, I'm not a developer.
The callin.io setup I'm using comes from a package purchased via GumRoad. It's just this one step that I'm unable to get working.
Thanks,
James
that replaces lines 3-5 (your 4 is currently an empty line)
It turns out that was a fluke. The correct solution was provided; it's an Airtable bug. The recordID won't be sent until the automation is activated. I also had to implement the script that was suggested:
javascript
let config = input.config();
let url = `` [webhook url goes here]?RecordID=${config.recordid} ``;
fetch(url);
Here is a link to the full explanation of the script:
Hi Christopher,
Thanks for this - somehow I got mine working (complete fluke!) but this is awesome and I really appreciate it!
James
Likely when you activated your AT automation script, I would assume? That was the key point; in test mode, I won't send the record ID, only when it's active. I'm glad you also managed to get it working.