jackwener/OpenCLI · error · EmptyResultError

opencli notebooklm list

Error message

opencli notebooklm list

What it means

`opencli notebooklm list` throws this EmptyResultError only after all three recovery paths fail: the authenticated batchexecute RPC returned no rows, the home-page DOM link scrape returned no rows, and readCurrentNotebooklm produced no current-notebook fallback (and rpcError was null or suppressed). It signals the account genuinely exposes no notebooks to this session.

Source

Thrown at clis/notebooklm/list.js:48

        }
        let domRows;
        try {
            domRows = await listNotebooklmLinks(page);
        }
        catch (error) {
            if (currentFallback)
                return [currentFallback];
            if (rpcError)
                throw rpcError;
            throw error;
        }
        if (domRows.length > 0)
            return domRows;
        if (currentFallback)
            return [currentFallback];
        if (rpcError)
            throw rpcError;
        throw new EmptyResultError('opencli notebooklm list', 'No NotebookLM notebooks were found after the authenticated RPC and home-page fallback both returned empty.');
    },
});

View on GitHub (pinned to 49907e53dc)

Solutions

  1. Log into the intended Google account in the adapter's browser session and confirm notebooks are visible at notebooklm.google.com.
  2. Run `opencli notebooklm list` again after confirming the web UI shows notebooks (if it does, this is an adapter/selector issue — update opencli).
  3. Create at least one notebook in the UI if the account is genuinely empty.
  4. Check Workspace admin policies if notebooks exist but are not listed for this account.

Example fix

// before
opencli notebooklm list   # empty error on wrong profile
// after
# switch the adapter browser session to the correct Google profile, then
opencli notebooklm list
Defensive patterns

Strategy: try-catch

Validate before calling

// Confirm the browser session's Google account can see notebooks at notebooklm.google.com before scripting.

Try / catch

try {
  notebooks = await run('opencli notebooklm list -f json');
} catch (e) {
  if (String(e.message).includes('both returned empty')) {
    console.warn('No notebooks visible for this Google account; check profile/permissions');
    notebooks = [];
  } else throw e;
}

Prevention

When it happens

Trigger: listNotebooklmViaRpc returns [] (not throwing), listNotebooklmLinks returns [], and readCurrentNotebooklm was null — i.e. logged into a Google account with zero notebooks, or the account/workspace hides them all.

Common situations: Wrong Google profile in the browser session; a brand-new Workspace account with no notebooks yet; enterprise policy blocking NotebookLM; querying the wrong authenticated profile than expected.

Related errors


AI-assisted analysis of jackwener/OpenCLI@49907e53dc (2026-08-29). Data as JSON: /api/errors/d3bde59e5dc3e19c. Report an issue: GitHub.