Hello,
I am trying to send a request from smf container to amf using this code but I got 500 null reference point
panic recovered:
amf | runtime error: invalid memory address or nil pointer dereference
Please can anyone help if the json object I am using it is correct.
curl --location --request POST ‘http://amf.free5gc.org:8000/namf-comm/v1/ue-contexts/imsi-208930000000003/n1-n2-messages’
–header ‘Accept: application/json’
–header ‘Content-Type: multipart/related; boundary=“296682a27b6906a337ac09b418a49b569315cf55b3804db921a4cb700e39”’
–data-raw ‘{
“n2InfoContainer”: {
“n2InformationClass”: “SM”,
“smInfo”: {
“pduSessionId”: 1,
“n2InfoContent”: {
“ngapIeType”: “PDU_RES_REL_CMD”,
“ngapData”: {
“contentId”: “N2SmInfo”
}
}
}
},
“pduSessionId”: 1
}’
or this json file
{
“n1MessageContainer”: {
“n1MessageClass”: “SM”,
“n1MessageContent”: {
“contentId”: “N1Msg”
}
},
“n2InfoContainer”: {
“n2InformationClass”: “SM”,
“smInfo”: {
“pduSessionId”: 10,
“n2InfoContent”: {
“ngapIeType”: “PDU_RES_SETUP_REQ”,
“ngapData”: {
“contentId”: “N2SmInfo”
}
},
“sNssai”: {
“sst”: 1,
“sd”: “010203”
}
}
},
“pduSessionId”: 10
}