Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Nnrf_NFManagement] POST /subscriptions request with a subscriptionId already created serves a 409 response (R15.2.0). The specification doesn't allow the 409 response but we think it is the one that should be set.
POST /nnrf-nfm/v1/subscriptions HTTP/1.1
Host: vdev-newedge0001.b-com.local:8180
Connection: keep-alive
Content-Length: 130
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
{
"nfStatusNotificationUri": "http://127.0.0.1:8181/namf-mt/v1/nnrf-nfm/notification",
"subscriptionId": "123456-subs987655"
}
HTTP/1.1 409 Conflict
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type, Authorization, Accept, Accept-Language
Content-Type: application/problem+json
Content-Length: 389
Access-Control-Allow-Methods: GET, PUT, POST, PATCH, DELETE, OPTIONS
Date: Thu, 14 May 2020 09:26:34 GMT
{
"type":"InstanceAlreadyExistsRuntimeException",
"title":"conflict",
"status":409,
"detail":"instance with subscriptionId value 123456-subs987655 of type com.bcom.newedge._3gpp._5gc.nf.commons.models.SubscriptionData already exists",
"instance":"123456-subs987655",
"cause":"The instance already exists",
"invalidParams":[
{
"param":"subscriptionId=123456-subs987655",
"reason":"already created"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment