Ahoi, we found the error. For some reason the imported data sources were stored without the field “settings”. This lead to a couple of downstream issues whenever the frontend requested the settings, e.g. for metrics creation. I don’t know whether this is a bug, maybe you want to look into it.
We solved the issue by deleting the affected datasources using your very instructive RESTful interface (DELETE /datasources/<id>).