cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Phase 2: migrate recent content

Building neo4j apps with Python - TypeError: Object of type Date is not JSON serializable

dagg
Node

I'm going through all the optional challenges, and currently having issues with movie details part. It keeps raising a type error (TypeError: Object of type Date is not JSON serializable) when I click on one of the movies in my browser. It shows me the similar movies page instead.

has anyone had the same issue? If so, what should I need to do to fix it?

1 REPLY 1

jalakoo
Node Clone

You'll need to update the Cypher query to stringify any dates encountered, ie 'toString(node.date_property)'.  See Adam's response in this repo issue:  https://github.com/neo4j-graphacademy/app-python/issues/10

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online