Skip to content

Commit

Permalink
Merge pull request #133 from free5gc/fix/oauth-get-pdu-info
Browse files Browse the repository at this point in the history
fix: OAuth faild when fetch PDU Session Info
  • Loading branch information
ianchen0119 authored Feb 10, 2025
2 parents a75c6b3 + 1920133 commit 87a49ed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions backend/WebUI/api_webui.go
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,7 @@ func removeCdrFile(cdrFilePath string) {

for _, file := range files {
if _, err = os.Stat(file); err == nil {
logger.BillingLog.Infof("Remove CDR file: " + file)
logger.BillingLog.Infof("Remove CDR file: %s", file)
if err = os.Remove(file); err != nil {
logger.BillingLog.Warnf("Failed to remove CDR file: %s\n", file)
}
Expand Down Expand Up @@ -1952,6 +1952,12 @@ func GetUEPDUSessionInfo(c *gin.Context) {
c.JSON(http.StatusInternalServerError, gin.H{})
return
}
if err = webui_context.GetSelf().RequestBindToken(req, ctx); err != nil {
logger.ProcLog.Error(err)
c.JSON(http.StatusInternalServerError, gin.H{})
return
}

resp, err := httpsClient.Do(req)
if err != nil {
logger.ProcLog.Error(err)
Expand All @@ -1963,7 +1969,6 @@ func GetUEPDUSessionInfo(c *gin.Context) {
logger.ProcLog.Error(closeErr)
}
}()

sendResponseToClient(c, resp)
} else {
c.JSON(http.StatusInternalServerError, gin.H{
Expand Down

0 comments on commit 87a49ed

Please sign in to comment.