Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The dataProvider is probably wrong for 'getList' #1

Open
priyatamnayakwsp opened this issue May 18, 2023 · 0 comments
Open

The dataProvider is probably wrong for 'getList' #1

priyatamnayakwsp opened this issue May 18, 2023 · 0 comments

Comments

@priyatamnayakwsp
Copy link

My api giving below data, but still am getting the below error . why ?

ERROR: react_devtools_backend_compact.js:2367 The response to 'getList' must be like { data : [...] }, but the received data is not an array. The dataProvider is probably wrong for 'getList'

api returning below data

[
{
"publishStart": "2023-05-26",
"published": "d",
"created": "2023-05-19",
"modifiedbyId": "w",
"description": "dd",
"id": "36",
"createdbyId": "w",
"modified": "2023-05-19",
"publishEnd": "2023-06-02",
"type": "w",
"title": "dd"
},
{
"publishStart": "17-05-2023",
"published": "patch_test",
"created": "17-05-2023",
"modifiedbyId": "test",
"description": "test",
"id": "2",
"createdbyId": "test",
"modified": "17-05-2023",
"publishEnd": "17-05-2023",
"title": "test",
"type": "test"
},
{
"published": "4",
"modifiedbyId": "3",
"description": "4",
"id": "1",
"createdbyId": "1",
"type": "3",
"title": "4"
},
{
"publishStart": "2023-06-03",
"published": "w",
"created": "2023-05-04",
"modifiedbyId": "d",
"description": "d",
"id": "34",
"createdbyId": "w",
"modified": "2023-05-11",
"publishEnd": "2023-05-27",
"type": "d",
"title": "d"
},
{
"publishStart": "17-05-2023",
"published": "patch_test",
"created": "17-05-2023",
"modifiedbyId": "test",
"description": "test",
"id": "3",
"createdbyId": "test",
"modified": "17-05-2023",
"publishEnd": "17-05-2023",
"title": "test",
"type": "test"
},
{
"publishStart": "2023-05-26",
"published": "d",
"created": "2023-05-19",
"modifiedbyId": "w",
"description": "dd",
"id": "39",
"createdbyId": "w",
"modified": "2023-05-19",
"publishEnd": "2023-06-02",
"type": "w",
"title": "dd"
}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant