Errors are not handled in /getPathNames calls, so if the response string is Too Big for NodeJS (~1G), the whole server stops instead of returning an error.
Error handling should be added to /getPathNames and ideally all the API endpoints in a consistent way.