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

rest

#1

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.


#2

I should mention that i am on dreamfactory 2.9. More details here :

DreamFactory Instance

License Level: OPEN SOURCE

DreamFactory Version: 2.9.0

System Database: mysql

Install Path: /opt/bitnami/apps/dreamfactory/htdocs/

Log Path: /opt/bitnami/apps/dreamfactory/htdocs/storage/logs/

Log Mode: single

Log Level: warning

Cache Driver: file

Cache Path: /opt/bitnami/apps/dreamfactory/htdocs/storage/framework/cache/data/

Demo: false

Server

Operating System: linux

Release: 3.16.0-4-amd64

Version: #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19)

Host:

IP Address:

Machine: x86_64

PHP Version: 7.0.23

PHP Server API: FPM/FastCGI


#3

Okay, one more update.
On further testing, the error only occurs if “fields=*” is appended to the endpoint

`http://mydomain/api/v2/schema/_table/tableName?fields=*

In fact “`http://mydomain/api/v2/schema/_table/tableName” work as expected.

How do i file bug ??

Cheers
Abhijit