CLOUD-216 error handling when token cannot be retrieved