Last active
May 12, 2020 17:57
-
-
Save tnmtechnologies/662a5a09f93a39a228d034d0825bee44 to your computer and use it in GitHub Desktop.
[Nnrf_NFManagement] example of a 400 response of a PUT request containing a malformed JSON payload (R15.2.0)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT /nnrf-nfm/v1/nf-instances/80fd9293-7bc9-4fdf-8888-4a72e9f751d4 HTTP/1.1 | |
Host: vdev-newedge0001.b-com.local:8180 | |
Connection: keep-alive | |
Content-Length: 1639 | |
accept: application/json | |
DNT: 1 | |
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 | |
Content-Type: application/json | |
Origin: http://vdev-newedge0001.b-com.local:8180 | |
Referer: http://vdev-newedge0001.b-com.local:8180/ | |
Accept-Encoding: gzip, deflate | |
Accept-Language: en-US,en;q=0.9 | |
{ | |
"nfInstanceId" "80fd9293-7bc9-4fdf-8888-4a72e9f751d4", | |
"nfType": "AMF", | |
"nfStatus": "REGISTERED", | |
"heartBeatTimer": 200, | |
"plmnList": null, | |
"sNssais": null, | |
"nsiList": null, | |
"fqdn": "amf0.5gc.mncX.mccY.3gppnetwork.org", | |
"interPlmnFqdn": null, | |
"ipv4Addresses": null, | |
"ipv6Addresses": null, | |
"allowedPlmns": null, | |
"allowedNfTypes": [ "SMF" ], | |
"allowedNfDomains": null, | |
"allowedNssais": null, | |
"priority": 32767, | |
"capacity": 32767, | |
"load": 15, | |
"locality": "the locality value", | |
"udrInfo": null, | |
"udmInfo": null, | |
"ausfInfo": null, | |
"amfInfo": null, | |
"smfInfo": null, | |
"upfInfo": null, | |
"pcfInfo": null, | |
"bsfInfo": null, | |
"chfInfo": null, | |
"nrfInfo": null, | |
"customInfo": "the customInfo value", | |
"recoveryTime": "2020-04-27T18:26:50.833Z", | |
"nfServicePersistence": null, | |
"nfServices": [ | |
{ | |
"serviceInstanceId": "0ffd8c5f-9b15-48bf-8ba5-67ebfccaf392", | |
"serviceName": "namf-comm", | |
"versions": [ | |
{ | |
"apiVersionInUri": "v1", | |
"apiFullVersion": "1.0.0", | |
"expiry": "2022-05-11T12:27:22.703Z" | |
} | |
], | |
"scheme": "https", | |
"nfServiceStatus": "REGISTERED", | |
"fqdn": null, | |
"interPlmnFqdn": null, | |
"ipEndPoints": null, | |
"apiPrefix": null, | |
"defaultNotificationSubscriptions": null, | |
"allowedPlmns": null, | |
"allowedNfTypes": null, | |
"allowedNfDomains": null, | |
"allowedNssais": null, | |
"priority": 32767, | |
"capacity": 32767, | |
"load": 20, | |
"recoveryTime": "2020-04-27T18:26:50.958Z", | |
"chfServiceInfo": null, | |
"supportedFeatures": "1234" | |
} | |
] | |
}HTTP/1.1 400 Bad Request | |
Connection: keep-alive | |
Access-Control-Allow-Origin: * | |
Access-Control-Allow-Headers: Content-Type, Authorization, Accept, Accept-Language | |
Content-Type: application/problem+json | |
Content-Length: 366 | |
Access-Control-Allow-Methods: GET, PUT, POST, PATCH, DELETE, OPTIONS | |
Date: Tue, 12 May 2020 17:19:02 GMT | |
{ | |
"type": "JsonParseException", | |
"title": "Unexpected character", | |
"status": 400, | |
"detail": "Unexpected character ('\"' (code 34)): was expecting a colon to separate field name and value", | |
"instance": null, | |
"cause": "Unexpected character ('\"' (code 34)): was expecting a colon to separate field name and value. Parsing issue occured at column 19 of line 2.", | |
"invalidParams": null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment