This vignette addresses the most common issues users encounter when
setting up and using the tuber package.
Cause: The YouTube Data API v3 is not enabled in your Google Cloud project.
Solution: 1. Go to Google Cloud Console 2. Select your project (or create a new one) 3. Follow Google’s YouTube Data API setup guide to enable the API 4. Wait 2-5 minutes for the API to be fully activated 5. Try your request again
Your OAuth scope or API key does not have the required permissions.
yt_oauth() with a token path that does
not contain a usable token, or remove the cached token reported by
formals(yt_oauth())$token.Complete Setup Instructions: 1. Go to Google Cloud Console 2.
Create a new project or select existing one 3. Enable YouTube Data API
v3 4. Go to Credentials
5. Click “Create Credentials” > “OAuth client ID” 6. Choose “Desktop
application” 7. Note the Client ID and Client Secret 8. Use:
yt_oauth("your_client_id", "your_client_secret")
Google requires installed applications to use a system browser and local redirect. Its former out-of-band copy-and-paste flow is no longer supported.
You have exhausted one of the project’s daily quota buckets.
Solutions: - Wait until quota resets at midnight Pacific Time. - Inspect the project’s actual usage in Google Cloud Console. - Use batch operations and the response cache to avoid repeated requests. - Request a quota increase if the application needs a higher allocation.
Caption download requires OAuth and permission to access the caption track.
Authenticate as the channel that owns the video or as an authorized content partner.
Open an issue at https://github.com/gojiplus/tuber/issues with the
function call, the error class and message, and
sessionInfo(). Remove API keys, OAuth tokens, and other
credentials before posting. 3. Test with simple examples before complex
operations 4. Check the GitHub issues for
similar problems 5. When reporting issues, include: - Complete error
messages - Minimal reproducible example - Your Google Cloud project
setup details (without sharing credentials)
Comments functions return fewer results than expected
Cause: YouTube API has built-in limits and some comments may be hidden.
Solutions: - YouTube limits total searchable results (~500 for search, varies for comments) - Some comments may be filtered by YouTube’s spam detection - Private or deleted comments won’t appear in results