I’m using the scripting app to send data via API request to another application. It’s currently functioning, and the other application is able to take the data and perform as required.
However, I’m having trouble getting a response from the API request that doesn’t timeout. It works for one or two records, but beyond that it’ll return a Request Timeout error. Surprisingly, the code does wait for the function to be fully performed (I get a loading icon), but the response information doesn’t seem to be waiting.
Is this a limitation with remoteFetchAsync/Airtable or is something wrong with my implementation?
Related code:
(I’ve replaced the URL and header/x-functions-key with dummy strings):
const stringifiedData = JSON.stringify(data);
const url = "private_url";
const requestOptions = {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-functions-key": "private_key",
},
body: stringifiedData,
keepalive: true
};
await remoteFetchAsync(url, requestOptions).then(response => {
console.log(response)
})