[PR #5262] Value Error fix at line 736 - END cannot be a start node #4334

Closed
opened 2026-02-20 17:50:02 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/5262

State: closed
Merged: No


I was working on the langgraph and found this Value Error that END cannot be a start node whereas the original logic is same, but the positional argument is considering it as a START_KEY as the value intended for finish key. Even if the finish point is END.
Following is the usage example:

graph = StateGraph(GraphState)
graph.add_node("generate_sql", generate_sql)
graph.add_node("execute_sql", execute_sql)
graph.add_conditional_edges("execute_sql", decide_next_node, {"generate_sql", END})
graph.add_edge("generate_sql", "execute_sql")
graph.set_entry_point("generate_sql")
graph.set_finish_point(END)  
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/5262 **State:** closed **Merged:** No --- I was working on the langgraph and found this Value Error that END cannot be a start node whereas the original logic is same, but the positional argument is considering it as a START_KEY as the value intended for finish key. Even if the finish point is END. Following is the usage example: ``` graph = StateGraph(GraphState) graph.add_node("generate_sql", generate_sql) graph.add_node("execute_sql", execute_sql) graph.add_conditional_edges("execute_sql", decide_next_node, {"generate_sql", END}) graph.add_edge("generate_sql", "execute_sql") graph.set_entry_point("generate_sql") graph.set_finish_point(END) ```
yindo added the pull-request label 2026-02-20 17:50:02 -05:00
yindo closed this issue 2026-02-20 17:50:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4334