500 Internal Server Error : An error occurred(0): Unknown data property field_group_privacy

232 Views Asked by At

I am trying to Create Services to Create Node Type Discussion in a Group using Services Module, but getting the error :

500 Internal Server Error : An error occurred(0): Unknown data property field_group_privacy

In the Header I have given:

Content-type:application/json

x-csrf-token:token value

session-name:session name value

In the Body I have given :

{
"og_group_ref": {"und": [{"target_id": "3897"}]},

"title": "Title of discussion",

"field_description": {"und": [{"value": "test description"}]},

"type": "discussion"

}

Can anyone please tell me why I am getting this error ?

ScreenShot

1

There are 1 best solutions below

3
Leigh On

The service you are posting the data to has an error in it's code. It's probably trying to do something with a field called "group privacy" that doesn't exist. Or the query to look at that data is invalid