-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Open
Labels
🐞 BugSomething isn't workingSomething isn't working🩺 Needs TriageNeeds attention of maintainersNeeds attention of maintainers
Description
crawl4ai version
0.8.0
Expected Behavior
No errors in logs
Current Behavior
Sometimes a job takes much longer than usual to complete, and there are many such errors in the logs:
Code context:
1051 perms = context_settings.get("permissions", [])
1052 perms.append("geolocation")
1053 context_settings["permissions"] = perms
1054
1055 # Create and return the context with all settings
1056 → context = await self.browser.new_context(**context_settings)
1057
1058 # Apply text mode settings if enabled
1059 if self.config.text_mode:
1060 # Create and apply route patterns for each extension
1061 for ext in blocked_extensions:
[ERROR]... × https://somesite.com | Error:
Unexpected error in _crawl_web at line 1056 in create_browser_context
(../usr/local/lib/python3.12/site-packages/crawl4ai/browser_manager.py):
Error: 'NoneType' object has no attribute 'new_context'
Is this reproducible?
No
Inputs Causing the Bug
Steps to Reproduce
Code snippets
OS
Linux
Python version
3.12
Browser
No response
Browser version
No response
Error logs & Screenshots (if applicable)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐞 BugSomething isn't workingSomething isn't working🩺 Needs TriageNeeds attention of maintainersNeeds attention of maintainers