Closed niro1987 closed 2 years ago
Well, if you get the "XBN Database is not activated" like this:
[281472425272144] Invalid response, status code: 503 - Data: {"errorGroup":"SERVICE_UNAVAILABLE","errorCode":"SYS_00004","errorMessage":"XBN Database is not activated"}
then that's the api server telling you to switch site since the one you are connected to isn't active. So I would check for the SYS_00004 errorCode and try the other url if that happens. That's what the Verisure app is doing..
This is related to the
m-api
branchDuring
login
, two url's are used,https://m-api01.verisure.com
andhttps://m-api02.verisure.com
. The url that is successfull is stored for later use as thebase_url
. Login is succesfull onhttps://m-api01.verisure.com
butget_installations
failed with errorMessageXBN Database is not activated
.Swapping the two login urls fixed it for me but that might not be a sustainable solution. I believe that the request functio should try both urls, as the login does.