Troubleshooting Guide ๐ โ
This guide helps you resolve common issues when using get-cookie.
Common Issues โ
Permission Denied Errors โ
bash
Error: Permission denied: /Users/username/Library/...
Solutions:
- Check file permissions:bash
ls -la ~/Library/Application\ Support/Google/Chrome/ ls -la ~/Library/Application\ Support/Firefox/Profiles/ ls -la ~/Library/Containers/com.apple.Safari/
- Ensure your user has read access
- Reset permissions if needed:bash
chmod 700 ~/Library/Application\ Support/Google/Chrome/
Keychain Access Denied โ
bash
Error: Unable to access Chrome Safe Storage
Solutions:
- Open Keychain Access.app
- Search for "Chrome Safe Storage"
- Update access permissions
- Allow access when prompted
No Cookies Found โ
bash
No cookies found for domain: example.com
Solutions:
- Verify the domain is correct
- Check if cookies exist in browser
- Try using wildcard search:bash
get-cookie % example.com
- Check browser profile paths:bash
get-cookie % example.com --dump-grouped
Browser-Specific Issues โ
Chrome โ
Profile Access
- Ensure Chrome is not running
- Check profile directory exists
- Verify profile permissions
Encryption
- Keychain access required
- Safe Storage key must exist
- Profile must be decryptable
Firefox โ
Profile Location
- Check default profile exists
- Verify sqlite database access
- Test file permissions
Database Access
- Database must not be locked
- File must be readable
- Check for corruption
Safari โ
Container Access
- Verify container permissions
- Check binary cookie file exists
- Test file access rights
Binary Format
- File must be valid format
- Check for corruption
- Verify Safari version
Debugging Steps โ
Enable Verbose Logging
bashDEBUG=* get-cookie auth example.com
Check System Requirements
bash# Check macOS version sw_vers # Check Node.js version node --version
Verify Installation
bash# Check global installation which get-cookie # Check package version get-cookie --version
Test Basic Access
bash# Test Chrome access ls -la ~/Library/Application\ Support/Google/Chrome/Default/Cookies # Test Firefox access ls -la ~/Library/Application\ Support/Firefox/Profiles/*/cookies.sqlite # Test Safari access ls -la ~/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies
Still Having Issues? โ
Check GitHub Issues
- Search existing issues
- Look for similar problems
- Check closed issues too
Gather Debug Info
bash# Get system info get-cookie --debug-info > debug.log
Report the Bug
- Include debug.log
- Describe exact steps
- Share error messages
Get Support
- Open GitHub issue
- Provide reproduction steps
- Include system details