#item should not be null or undefined

1 messages · Page 1 of 1 (latest)

devout ibex
#

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
}
devout ibex
#

apparently the problem is on this createChange.execute. I could force the error setting item as undefined

south tide
#

Hi Guys, I work with @devout ibex and we've tried to turn on some debug stuff but nothing helped. I didn't dig into the source code so far, we are going to wait a little bit more before going to this approach.

devout ibex
#

to give you more information, the response sent from api
{"statusCode":400,"message":["item should not be null or undefined"],"error":"Bad Request"}

bold matrixBOT
#

@devout ibex, you just advanced to level 2!

arctic agate
#

@devout ibex from a quick look couldn't find any particular reason for it to fail. @tame basalt mind taking a closer look at this?

tame basalt
#

let me check

south tide
#

If you guys need access to the instance or the panel I can manage it.

tame basalt
#

I tried using the same api docker image version, it seems to work
Dming u for the details

south tide
#

I did it locally and everything worked as expected... even changing the NODE_ENV environment variable to other options. We are going to do some more tests and return.

tame basalt