Lesson 5: Human in the Loop - Error executing the graph

When executing this code segment of the Extra Practice, when you build a small graph, I got an ‘AttributeError: ‘_GeneratorContextManager’ object has no attribute ‘get_next_version’’. Any idea about how to fix it?

thread = {“configurable”: {“thread_id”: str(1)}}
graph.invoke({“count”:0, “scratch”:“hi”},thread)

Which course are you attending? It would be best if you post your question in that course’s forum area.

The “Learning Platform Feedback” is not the place of questions about course assignments.

“AI Agents in LangGraph” course.

Hello @emilio_cobog ,

You can find the Short Course Q&A section in this link. You can also find the category on the left sidebar of the page.

1 Like

Great. Thank you.