Hey Folks,
We are building an app that makes use of Custom Objects, when I tried a Custom Object record in Serverless I have been getting the following error { message: 'Route not allowed', status: 404 }
.
My colleague tried the same code and the record got successfully created.
Entity Json
{
"module": {
"fields": [
{
"name": "moduleId",
"type": "TEXT",
"label": "",
"required": true
},
{
"name": "origin",
"type": "TEXT",
"label": "",
"required": true,
"filterable": true
},
{
"name": "title",
"type": "TEXT",
"label": "",
"required": true
},
{
"name": "url",
"type": "TEXT",
"label": ""
},
{
"name": "isActive",
"type": "CHECKBOX",
"label": ""
},
{
"name": "allowedRating",
"type": "NUMBER",
"label": ""
}
]
}
}
Create Record Snippet
const $entity = $db.entity({ version: "v1" })
const modules = $entity.get("module")
modules
.create({
moduleId: "UCZzOVoi2nhio8Cttxq10XSg",
origin: "parent#type",
title: "Module Title",
url: "https://example.com",
isActive: true
})
.then(
(data) => console.log("Entity Stored Successfully---> ", data),
(err) => console.log("Entity Storage Failed---> ", err)
)
FDK Version
Installed: 6.11.0
Latest: 6.11.1
Note: We have faced the Route not allowed
a few times so far on $db, $schedule & $request methods. I think this is an issue with the FDK package. I have raised topics on the same previously.