contentful_express_tutorial
contentful_express_tutorial copied to clipboard
I can't run the sample app as is, I keep getting this error
products.js - getProducts (line 17) error: {
"sys": {
"type": "Error",
"id": "InvalidQuery"
},
"message": "The query you sent was invalid. Probably a filter or ordering specification is not applicable to the type of a field.",
"details": {
"errors": [
{
"name": "unknownContentType",
"value": "DOESNOTEXIST"
}
]
},
"requestId": "cec85c2a-3411-417e-b3a8-8a9c6811a33b"
}
Follow the instructions in the Readme about using your own content and it'll work
or change the following files:
- Change line 7 and line 14 of the
services/products.jsfile replacingproductwith2PqfXUJwE8qSYKuM0U6w8M - Change line 7 and line 14 of the
services/categories.jsfile replacingcategorywith6XwpTaSiiI2Ak2Ww0oi6qa
and it'll work with the original demo data.
The solution worked for me, thank you.
@cachrisman I'm still getting this error in the latest version of the app. I'm using my own Space ID and production Access token. Any ideas?