My node api call keeps failing.
My code is updating the same records several times, Is the Airtable servers slow that it can’t handle multiple calls concurrently ?
There are several update calls being made from my API.
I dont understand whats going on here ?
var result = body.records.map(function (record) {
^
TypeError: Cannot read properties of undefined (reading ‘records’)
at /fast-csv-js/node_modules/airtable/lib/table.js:116:35
at //node_modules/airtable/lib/run_action.js:70:17
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.2.0
FetchError: request to https://api.airtable.com/v0/appBtcEHoqEBYVB/IN/r? failed, reason: getaddrinfo ENOTFOUND api.airtable.com
at ClientRequest. (/Users/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (node:events:527:28)
at TLSSocket.socketErrorListener (node:_http_client:454:9)
at TLSSocket.emit (node:events:527:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: ‘system’,
errno: ‘ENOTFOUND’,
code: ‘ENOTFOUND’
}