Fixed major bug: when api_make_request returns an error it was not wrapped in _dict_err but returned a string which caused exception when then checked for result data