In the book The Norton History of Astronomy and Cosmology by the late John North I have found the following statement (page 514):
"The German mathematician Lejeune Dirichlet studied the law of gravitation in non-Euclidean space towards the end of 1850."
Does anyone perhaps know more about that?