I have successfully used osmnx.shortest_path_length to calculate many distances but these two nodes return : NetworkXNoPath: Node 9473072437 not reachable from 178685882.
The node locations were derived from ox.distance.nearest_nodes() and I have verified the the nodes in fact represent the locations I am trying to analyze using openstreetmaps: Node 1
As you can see they are quite close to each other. I have tried using simply the network of Sussex County, Delaware, as well as the entire state of Delaware. As expected this change had no impact.
g = ox.graph_from_place('Delaware, USA', network_type="drive")
dst = nx.shortest_path_length(g, source= 178685882, target= 9473072437, weight= 'length')