error when apiHost is not configured