You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using browserbase (1.0.5), getting the following error:
result = smart_scraper_graph.run()
File "/opt/conda/lib/python3.10/site-packages/scrapegraphai/graphs/smart_scraper_graph.py", line 292, in run
self.final_state, self.execution_info = self.graph.execute(inputs)
File "/opt/conda/lib/python3.10/site-packages/scrapegraphai/graphs/base_graph.py", line 358, in execute
return self._execute_standard(initial_state)
File "/opt/conda/lib/python3.10/site-packages/scrapegraphai/graphs/base_graph.py", line 303, in _execute_standard
raise e
File "/opt/conda/lib/python3.10/site-packages/scrapegraphai/graphs/base_graph.py", line 276, in _execute_standard
result, node_exec_time, cb_data = self._execute_node(
File "/opt/conda/lib/python3.10/site-packages/scrapegraphai/graphs/base_graph.py", line 200, in _execute_node
result = current_node.execute(state)
File "/opt/conda/lib/python3.10/site-packages/scrapegraphai/nodes/fetch_node.py", line 116, in execute
return self.handle_web_source(state, source)
File "/opt/conda/lib/python3.10/site-packages/scrapegraphai/nodes/fetch_node.py", line 298, in handle_web_source
data = browser_base_fetch(
File "/opt/conda/lib/python3.10/site-packages/scrapegraphai/docloaders/browser_base.py", line 59, in browser_base_fetch
result.append(session.load(url, text_content=text_content))
File "/opt/conda/lib/python3.10/site-packages/pydantic/main.py", line 885, in __getattr__
raise AttributeError(f'{type(self).__name__!r} object has no attribute {item!r}') from exc
AttributeError: 'SessionCreateResponse' object has no attribute 'load'
Hello @nom! I'm here to help you with any bugs, questions, or contributions. Let's take a look at the issue you're experiencing together.
The error you're encountering, AttributeError: 'SessionCreateResponse' object has no attribute 'load', suggests that the SessionCreateResponse object returned by the create method in the Browserbase client does not have a load method. This could be due to changes in the Browserbase module, particularly in version 1.0.5, which might have altered the structure or attributes of the SessionCreateResponse object.
To resolve this issue, you should:
Check the Documentation: Verify the current documentation for the Browserbase module to understand the expected methods and attributes of the SessionCreateResponse object. It's possible that the method to load URLs has changed or been moved to a different object.
Review Recent Changes: Look into the release notes or changelog for version 1.0.5 of the Browserbase module to identify any changes related to session handling or the SessionCreateResponse object.
Update Code: If the method to load URLs has changed, update your code accordingly. You might need to use a different method or object to perform the loading operation.
Contact Support: If the documentation does not clarify the changes, consider reaching out to the maintainers of the Browserbase module for further assistance.
Unfortunately, I couldn't find specific details about the SessionCreateResponse object or recent changes in the repository that could directly address this issue [1].
Describe the bug
Using browserbase (1.0.5), getting the following error:
Running
The text was updated successfully, but these errors were encountered: