You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Currently, running npm run dev locally can throw the following error:
Unexpected error: Cannot destructure property 'Symbol(Symbol.iterator)' of '(intermediate value)' as it is null.
This happens because the config file(observablehq.config.js) tries to destructure the API response without checking for errors(which happen when database was unavailable or environment variables were missing, the API call returned null)
const {
result: [{ results: clients }],
} = await query(`SELECT DISTINCT payer FROM indexer_proof_set_rails WHERE with_cdn = true ORDER BY payer`)