NovuN
Novu3y ago
Aman

Getting 402 error while triggering the error

Hey guys I am trying to trigger an email notification from my node js app and getting this error message

"Request failed with status code 422"


can someone help me figure out where I am going wrong


this is what my code looks like

await novu.trigger("testing-workflow", {
        to: {
          subscriberId: "6375e52a452ac92da68f16e4",
        },
        payload: {},
      });


I have connected sendgrid to novu and the email triggers are working from novu when I am triggering it manually, but not from code
Was this page helpful?