-func (rc *RtmgrClient) SplitSource(src string) (*string, *uint16, error) {
- tcpSrc := strings.Split(src, ":")
- if len(tcpSrc) != 2 {
- err := errors.New("Unable to get the source details of the xapp. Check the source string received from the rmr.")
- return nil, nil, err
- }
- srcAddr := tcpSrc[0]
- xapp.Logger.Info("---Debugging Inside splitsource tcpsrc[0] = %s and tcpsrc[1]= %s ", tcpSrc[0], tcpSrc[1])
- srcPort, err := strconv.ParseUint(tcpSrc[1], 10, 16)
- if err != nil {
- return nil, nil, err
+ if err != nil && !(strings.Contains(err.Error(), "status 200")) {
+ return fmt.Errorf("%s failed with error: %s", subRouteAction.String(), err.Error())