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
- Log into the intended Google account in the adapter's browser session and confirm notebooks are visible at notebooklm.google.com.
- Run `opencli notebooklm list` again after confirming the web UI shows notebooks (if it does, this is an adapter/selector issue — update opencli).
- Create at least one notebook in the UI if the account is genuinely empty.
- 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
- Verify the intended Google profile is the one logged into the adapter browser.
- Check notebooklm.google.com manually to distinguish empty account from adapter breakage.
- Update opencli if the web UI lists notebooks but the CLI returns empty.
- Handle genuinely empty accounts explicitly instead of treating it as a bug.
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
- No chats visible in sidebar. Are you logged in?
- Google SSO cookies (SID + SAPISID) missing
- NotebookLM redirected to Google sign-in
- opencli notebooklm current
- notebooklm generate-audio
AI-assisted analysis of jackwener/OpenCLI@49907e53dc (2026-08-29).
Data as JSON: /api/errors/d3bde59e5dc3e19c.
Report an issue: GitHub.