There is a catch in the restws, which just throws another exception.