Troubleshooting
Common issues and solutions.
Chromium Not Found
Error: Chromium not found or Failed to download Chromium
Solutions:
-
Auto-download failed - Check internet connection. Chromium (~160MB) downloads from Google’s storage.
-
Use system Chromium:
export B4N1WEB_CHROMIUM=/usr/bin/chromium # or export B4N1WEB_CHROMIUM=/Applications/Chromium.app/Contents/MacOS/Chromium -
Manual download:
- Download from Chromium Snapshots
- Place in
~/.b4n1web/chromium/
-
Linux ARM64 (Raspberry Pi):
sudo apt install chromium-browser export B4N1WEB_CHROMIUM=/usr/bin/chromium
Permission Errors
Error: Permission denied when running binary
chmod +x b4n1web
Error: Permission denied for Chromium
chmod +x ~/.b4n1web/chromium/chrome
Binary Not Found
Error: Binary not found or b4n1web: command not found
-
Check PATH:
echo $PATH -
Add to PATH:
export PATH="$HOME/.local/bin:$PATH" echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc -
Use full path:
/full/path/to/b4n1web goto https://example.com
Timeout Issues
Error: Binary timed out after 30s
Increase timeout:
browser = AgentBrowser(options={"timeout": 60})
const browser = new AgentBrowser({ timeout: 60 });
var browser = new AgentBrowser(new BrowserOptions { Timeout = 60 });
AgentBrowser browser = new AgentBrowser(new BrowserOptions().setTimeout(60));
Or CLI:
b4n1web goto https://slow-site.com --timeout 60
Connection Errors
Error: Connection refused or Network error
- Check internet connection
- Try different mode (Light mode doesn’t need Chromium)
- Check firewall/proxy settings
- For corporate networks, configure proxy:
export HTTP_PROXY=http://proxy:8080
export HTTPS_PROXY=http://proxy:8080
Version Mismatch
Warning: Version mismatch: SDK v0.9.5 requires binary v0.9.5, but found v0.9.4
Update both SDK and binary to same version:
# Reinstall SDK (gets latest binary)
pip install --upgrade b4n1-web
npm install b4n1-web@latest
dotnet add package B4n1Web --version 0.9.5
Or update binary manually:
curl -sL https://b4n1.com/install | bash
Architecture Mismatch
Error: Binary runs but crashes immediately
Check architecture:
uname -m # Linux/macOS
# x86_64 = amd64
# aarch64 = arm64
# Windows
echo %PROCESSOR_ARCHITECTURE%
Download correct binary from Releases.
Mode-Specific Issues
Light/JS Mode
- No Chromium needed
- Fastest
- Limited to static content
Render Mode
- Needs Chromium
- Slower startup (~2s first run)
- Full browser features
If Render mode fails, try JS mode first:
browser = AgentBrowser(options={"mode": "js"})
Debug Mode
Enable verbose logging:
RUST_LOG=debug b4n1web goto https://example.com
import logging
logging.basicConfig(level=logging.DEBUG)
Getting Help
- Check GitHub Issues
- Search existing issues
- Create new issue with:
- OS and version
- b4n1web version (
b4n1web --version) - Full error message
- Minimal reproduction code