Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all articles
Browse latest Browse all 1523

REST API POST successful , but i get error 500 "message": "array_merge(): Argument #1 is not an array"

$
0
0

@abhijit wrote:

As mentioned in title, I am trying to crate a record.
I tried various combinations and kept getting the following

{

“error”: {
“code”: 1000,
“context”: {
“error”: [
0
],
“resource”: [
{
“code”: 500,
“message”: “array_merge(): Argument #1 is not an array”
}
]
},
“message”: “Batch Error: Not all requested records could be retrieved.”,
“status_code”: 500
}
}

Later i was checking something else in the DB and found all the records actually made it to the table .
So essentially, the POST was successful , but API returned above error.

API endpoint :: POST http://mydomain/api/v2/schema/_table/tableName?fields=*

Any help is really appreciated.

Posts: 3

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1523

Trending Articles