Hello,
I’m trying to replicate an app already built on GoogleAppScripts into Airtable.
The problem I’m facing is with the fetch call.
Fetch call
const availability = await fetch('https://url', {
method: 'POST',
body: JSON.stringify({productId: productId})
}).then(res => {
const result = res.json();
output.text(`Result ${result}`);
return result;
}).catch((error) => {
output.text(`Error ${error}`);
});
The API runs on firebase function and the response is 200
Function execution took 10175 ms. Finished with status code: 200