subscriber does not have a configured channel
continuing from here: https://discord.com/channels/895029566685462578/937309213036785744/1158990311259910194
16 Replies
So i got this as my issue
@N01R can you share your workflow?
the overides are null
your payload is empty. Can you do one thing: create a new workflow just for chat (discord) and follow the guide (https://docs.novu.co/channels-and-providers/chat/discord) to see if it works
aite sure
@N01R, you just advanced to level 1!
Just to be super sure, have you also added it as a provider and made it active from the Integrations store? @N01R
yea thats already done
I have written it like so as an API call
export const Discord = async (req,res) => {
const novu = new Novu(NOVU_API_KEY);
try {
const subscriber = await novu.subscribers.setCredentials('48', 'discord-uJ2XtmqCp', {
webhookUrl: '<Discord Webhook>',
});
res.status(200).json(circularJson.stringify(subscriber));
return res.status;
} catch (error) {
res.status(500).json(circularJson.stringify({ message: error.message }));
}
}
}
try this:
And configure your workflow to use the
chatMsg
variableFrom your screenshot, it shows disabled at the top right. Any reason why? @N01R
You're not creating a sub here
oh no i changed it
aite lemme try this
Ye
it works
thanks a lot!!1