item should not be null or undefined

Hi, im getting this error when trying to create, update or delete an notification and cant understand why. api docker image version: ghcr.io/novuhq/novu/api:15455820304f8e4f38fb7a42b2b94843af0c64c4 POST /api/v1/notification-templates The payload:
{
"notificationGroupId": "6356e4e60a61b5212c79c6d1",
"name": "Test notification",
"description": "",
"steps": [
{
"template": {
"content": "content",
"subject": "subject",
"type": "email",
"contentType": "customHtml",
"name": "Email Message Template",
"variables": [],
"htmlContent": "content"
},
"_id": "e8c1e84f-9211-44cb-bf27-228b0b9a9818",
"active": true,
"filters": [
{
"children": []
}
]
}
],
"active": true,
"draft": false
}
{
"notificationGroupId": "6356e4e60a61b5212c79c6d1",
"name": "Test notification",
"description": "",
"steps": [
{
"template": {
"content": "content",
"subject": "subject",
"type": "email",
"contentType": "customHtml",
"name": "Email Message Template",
"variables": [],
"htmlContent": "content"
},
"_id": "e8c1e84f-9211-44cb-bf27-228b0b9a9818",
"active": true,
"filters": [
{
"children": []
}
]
}
],
"active": true,
"draft": false
}
11 Replies
AndreLuizsgf
AndreLuizsgfOP3y ago
apparently the problem is on this createChange.execute. I could force the error setting item as undefined
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
AndreLuizsgf
AndreLuizsgfOP3y ago
to give you more information, the response sent from api
{"statusCode":400,"message":["item should not be null or undefined"],"error":"Bad Request"}
{"statusCode":400,"message":["item should not be null or undefined"],"error":"Bad Request"}
Novu_Bot
Novu_Bot3y ago
@andreluizsgf, you just advanced to level 2!
Dima Grossman
Dima Grossman3y ago
@andreluizsgf from a quick look couldn't find any particular reason for it to fail. @biswaviraj mind taking a closer look at this?
BiswaViraj
BiswaViraj3y ago
let me check
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
BiswaViraj
BiswaViraj3y ago
I tried using the same api docker image version, it seems to work Dming u for the details
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
BiswaViraj
BiswaViraj3y ago
Ok cool, let us know here, if you faced any issues
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server