ValueError("Invalid value") in basedatatypes.py

I am encountering this issue as well while using Plotly (5.3.1) with Dash (2.0.0). I checked all the data points that I supply to the graph, and they are all float values, i.e. should all be valid. So I have no clue how to debug this other than joining the above users.

There are other reports of this issue: