This topic was automatically generated from Slack. You can find the original thread here.
Hello,
const account = await pd.getAccountById(accountId, {
include_credentials: true,
});
How can I properly error handle this?
I’ve experienced two errors so far:
One time it threw with an error like “OAuth token could not be fetched”. And in that case auto-retry mechanism could recover this situation on my side.
But I’ve also experienced a situation when I got the token but afterwards received 401
from Airtable or Invalid authentication token
. It might be a problem somewhere on my end, although it was a random occurence that I can’t replicate anymore so I think there’s a chance that the invalid token came from Pipedream.
Would be good to know how can I make the token retreival most resilient.