diff --git a/internal/sbi/consumer/nrf_service.go b/internal/sbi/consumer/nrf_service.go index cc5130e..19ca1ce 100644 --- a/internal/sbi/consumer/nrf_service.go +++ b/internal/sbi/consumer/nrf_service.go @@ -276,6 +276,7 @@ func (s *nnrfService) SendRegisterNFInstance(ctx context.Context, nrfUri, nfInst } else { // NFRegister resourceUri := res.Location + nf = res.NrfNfManagementNfProfile index := strings.Index(resourceUri, "/nnrf-nfm/") if index >= 0 { resouceNrfUri = resourceUri[:index] @@ -322,10 +323,14 @@ func (s *nnrfService) SendDeregisterNFInstance() (problemDetails *models.Problem _, err = client.NFInstanceIDDocumentApi.DeregisterNFInstance(ctx, request) if err != nil { + logger.CommLog.Error("test0") if apiErr, ok := err.(openapi.GenericOpenAPIError); ok { // API error + logger.CommLog.Error("test1") derigister_err := apiErr.Model().(Nnrf_NFManagement.DeregisterNFInstanceError) problemDetails = &derigister_err.ProblemDetails + logger.CommLog.Error("test2") + logger.CommLog.Error(problemDetails) } } diff --git a/internal/sbi/consumer/smf_service.go b/internal/sbi/consumer/smf_service.go index 0763f7c..c020767 100644 --- a/internal/sbi/consumer/smf_service.go +++ b/internal/sbi/consumer/smf_service.go @@ -178,7 +178,7 @@ func (s *nsmfService) SendCreateSmContextRequest(ue *amf_context.AmfUe, smContex err1 = localErr if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok { // API error - posterr := apiErr.Model().(*Nsmf_PDUSession.PostSmContextsError) + posterr := apiErr.Model().(Nsmf_PDUSession.PostSmContextsError) problemDetail = &posterr.ProblemDetails errorResponse = &posterr.PostSmContextsError }