Untied Labs

Troubleshooting

These notes are for running it on your own computer. Pick the message you're seeing.

Login

  1. Enable the YouTube APIs.

    The error includes the exact link. Open it, press Enable, wait a minute, retry.

    More detail

    Both YouTube Data API v3 and YouTube Analytics API must be enabled.

  2. Use Personal mode.

    Google says "Access blocked: app not verified" or shows an unverified-app warning when the OAuth client is not in Personal mode.

    More detail

    Create a Personal-mode client (SETUP.md step 1). If you must use an External app, add your account as a test user, or on the warning screen choose Advanced and continue, which is expected for your own tool.

  3. Sign in with the owner account.

    client_user_mismatch means a Personal-mode client works only for the Google account that created it. Sign in with that account at the consent screen.

  4. Stop the 7-day expiry.

    The Cloud app is in Testing mode. Recreate the client in Personal mode, or press Publish app (SETUP.md, "If you cannot use Personal mode"), then run this.

    Mac, Terminal

    python3 scripts/setup.py --force

    Windows, PowerShell

    py scripts/setup.py --force

    Linux

    python3 scripts/setup.py --force
  5. Save the login again.

    "Google no longer accepts the saved login." The token was revoked, expired, or unused for six months. Run this.

    Mac, Terminal

    python3 scripts/setup.py --force

    Windows, PowerShell

    py scripts/setup.py --force

    Linux

    python3 scripts/setup.py --force
More detail

Channel not found / the wrong channel. At the consent screen, choose the account or Brand Account that owns the channel. Run this to choose again.

Mac, Terminal

python3 scripts/setup.py --force

Windows, PowerShell

py scripts/setup.py --force

Linux

python3 scripts/setup.py --force

Search

  1. Wait for the quota reset.

    It resets at midnight Pacific. Searches cost about 102 units, so about 98 a day.

    More detail

    Use --dry-run, cache hits are free (results are cached 24 hours), and prefer audit.py and analytics.py (cheap calls).

  2. Skip hidden subscriber counts.

    Some channels hide them. Ratios that need subscribers are skipped for those channels.

  3. Retry autocomplete later.

    The suggestions endpoint is public but unofficial; Google can rate-limit it.

    More detail

    Wait a few minutes, use fewer expansions (scout.py without --all), or retry later. Results are cached for 24 hours.

Setup

  1. Connect to YouTube.

    Run this. Tools that say NO SETUP never need it.

    Mac, Terminal

    python3 scripts/setup.py

    Windows, PowerShell

    py scripts/setup.py

    Linux

    python3 scripts/setup.py
  2. Run it in your own terminal.

    The assistant says it can't run commands or reach the network. That happens in a chat-only app or a sandbox without network.

    More detail

    Run the command on your computer and paste the output (docs/COMPATIBILITY.md).

  3. Check the private file.

    Setup says no keychain was usable and used a private file. Check where things are with this command. It never prints values.

    Mac, Terminal

    python3 scripts/setup.py --status

    Windows, PowerShell

    py scripts/setup.py --status

    Linux

    python3 scripts/setup.py --status
    More detail

    Expected on servers, sandboxes and Linux without secret-tool (install libsecret-tools and have a desktop keyring running) or without an unlocked session. The file is readable only by your account but not encrypted.

  4. Open the printed link.

    The wizard page doesn't open. Copy the link it printed into a browser on the same computer.

    More detail

    It only works on 127.0.0.1 and only with its one-time token, so a link from an earlier run will say "forbidden". Over SSH or in a sandbox use this.

    Mac, Terminal

    python3 scripts/setup.py --cli

    Windows, PowerShell

    py scripts/setup.py --cli

    Linux

    python3 scripts/setup.py --cli
  5. Re-paste the volume key.

    Volume provider says "401", "invalid key" or "payment required". Re-run this and re-paste.

    Mac, Terminal

    python3 scripts/setup.py --volume

    Windows, PowerShell

    py scripts/setup.py --volume

    Linux

    python3 scripts/setup.py --volume
    More detail

    DataForSEO needs the generated API password from its API Access page, not your account password, and a funded balance for real data. Keywords Everywhere needs credits. Keyword Tool needs a Pro plan with API access.

    A volume run stopped with "estimated cost over limit". That is the guard. Look at the cost line, then raise --max-usd or add --yes if you agree.

Writes

  1. Turn write access on.

    "Write access is not enabled." Run this and sign in again.

    Mac, Terminal

    python3 scripts/setup.py --enable-writes

    Windows, PowerShell

    py scripts/setup.py --enable-writes

    Linux

    python3 scripts/setup.py --enable-writes
    More detail

    writeback.py apply also refuses unless you run it in a real terminal yourself; your assistant can't confirm changes for you.

  2. List what changed.

    A write-back changed something you did not want. This lists what was changed.

    Mac, Terminal

    python3 scripts/writeback.py history

    Windows, PowerShell

    py scripts/writeback.py history

    Linux

    python3 scripts/writeback.py history
  3. Restore one video.

    This restores the saved original title, description and tags of that video.

    Mac, Terminal

    python3 scripts/writeback.py revert VIDEO_ID

    Windows, PowerShell

    py scripts/writeback.py revert VIDEO_ID

    Linux

    python3 scripts/writeback.py revert VIDEO_ID
  4. Use py on Windows.

    In PowerShell use py. Install Python from python.org or the Microsoft Store, and choose Add python.exe to PATH.

    More detail

    Paths in docs use ~; on Windows that is your user folder, and your saved login lives in Windows Credential Manager (or, as a fallback, %USERPROFILE%\.config\untiedlabs-keywords).

  5. Start over.

    These revoke and delete the tokens. The status command shows what is still stored. Then delete the settings folder (~/.config/untiedlabs-keywords on Mac and Linux, %USERPROFILE%\.config\untiedlabs-keywords on Windows) and the pack folder.

    Mac, Terminal

    python3 scripts/auth.py logout

    Windows, PowerShell

    py scripts/auth.py logout

    Linux

    python3 scripts/auth.py logout

    Mac, Terminal

    python3 scripts/auth.py logout --writes

    Windows, PowerShell

    py scripts/auth.py logout --writes

    Linux

    python3 scripts/auth.py logout --writes

    Mac, Terminal

    python3 scripts/setup.py --status

    Windows, PowerShell

    py scripts/setup.py --status

    Linux

    python3 scripts/setup.py --status