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
To Reproduce
Steps to reproduce the behavior:
After starting burr in terminal by using "burr", run the following:
"import os
from dotenv import load_dotenv
from scrapegraphai.graphs import SmartScraperGraph
from scrapegraphai.utils import prettify_exec_info
smart_scraper_graph = SmartScraperGraph(
prompt="List me all the projects with their description.",
source="https://perinim.github.io/projects/",
config=graph_config
)
result = smart_scraper_graph.run()"
Expected behavior
Burr integration should work without error
Acutal Behaviour
Error in Fetch: ValueError: Action ParseNode attempted to write to keys {'content'} that it did not declare. It declared: (['parsed_doc'])!
Error in ParseNode: ValueError: Action ParseNode attempted to write to keys {'content'} that it did not declare. It declared: (['parsed_doc'])!
Desktop :
OS: macOS Sequoia 15.4.1
Additional context
Solved by fork. See Pull Request.
Might still affect other Graph types, havent checked...
The text was updated successfully, but these errors were encountered:
Hello @flst01! I'm Dosu, your friendly bug-solving bot here to help you tackle issues, answer questions, and navigate the path to contribution. While you wait for a human maintainer, feel free to let me know how I can assist you! 🚀
The errors you're encountering with the Burr integration in the SmartScraperGraph example are due to a mismatch in the expected output keys for the Fetch and ParseNode actions. Specifically, the error messages indicate that these actions are attempting to write to the key 'content', which is not declared in their configuration.
For the FetchNode action, the expected output key should be 'doc', and for the ParseNode action, it should be 'chunks'[1][2]. The error suggests that the graph configuration or the Burr integration setup might be incorrectly specifying or expecting the 'content' key instead of the correct ones.
To resolve this issue, ensure that the graph configuration correctly declares the output keys for these actions. You might need to adjust the configuration to match the expected keys or review the fork that resolved the issue for specific changes made to address this mismatch.
Describe the bug
When using the example (https://scrapegraph-ai.readthedocs.io/en/latest/getting_started/examples.html) with Burr integration (https://scrapegraph-ai.readthedocs.io/en/latest/scrapers/graph_config.html#burr-integration) Fetch throws an error. After fixing the error in Fetch, ParseNode throws an error.
To Reproduce
Steps to reproduce the behavior:
After starting burr in terminal by using "burr", run the following:
"import os
from dotenv import load_dotenv
from scrapegraphai.graphs import SmartScraperGraph
from scrapegraphai.utils import prettify_exec_info
load_dotenv()
openai_key = os.getenv("OPENAI_API_KEY")
graph_config = {
"llm": {
"api_key": openai_key,
"model": "openai/gpt-4.1-nano",
},
"burr_kwargs": {
"project_name": "test-scraper",
"app_instance_id": 1,
}
}
smart_scraper_graph = SmartScraperGraph(
prompt="List me all the projects with their description.",
source="https://perinim.github.io/projects/",
config=graph_config
)
result = smart_scraper_graph.run()"
Expected behavior
Burr integration should work without error
Acutal Behaviour
Error in Fetch: ValueError: Action ParseNode attempted to write to keys {'content'} that it did not declare. It declared: (['parsed_doc'])!
Error in ParseNode: ValueError: Action ParseNode attempted to write to keys {'content'} that it did not declare. It declared: (['parsed_doc'])!
Desktop :
Additional context
Solved by fork. See Pull Request.
Might still affect other Graph types, havent checked...
The text was updated successfully, but these errors were encountered: