Since there is no confirmation when disabling the API, it's easy to do it by mistake, when trying to sync the wallet.