Sebastian Küsters
Sebastian Küsters
NNovu
Created by Sebastian Küsters on 10/25/2023 in #💬│support
Trigger a topic
@Pawan Jain thanks for sharing the information - now it works. Maybe improve the error message here - because workflow_not_found is misleading. Moreover I have to tell you that I wrote this so fast without investigation, because you describe nowhere in your docs how to actually trigger a topic. Only thanks to the hint by @Gali Baum here https://discordapp.com/channels/895029566685462578/1166659906460463165/1166673489869164564 I got a hint. It's just feedback to improve the docs - beside that thanks you both for the great support here 🙏
18 replies
NNovu
Created by Sebastian Küsters on 10/25/2023 in #💬│support
Trigger a topic
@Pawan Jain thanks for the hint - I will double check it...
18 replies
NNovu
Created by Sebastian Küsters on 10/25/2023 in #💬│support
Trigger a topic
Now I tried it via curl and get a successful reponse, but nothing happens and the Acitivy doesn't appear in the portal:
curl -X POST https://eu.api.novu.co/v1/events/trigger \
-H "Authorization: ApiKey XXX" \
-H "Content-Type: application/json" \
-d '{
"name": "files-uploaded",
"to": [
{
"type": "Topic",
"topicKey": "files-uploaded_8979296d-0c0c-4d83-bd0e-d58e66fc8cc2"
}
],
"payload": {
"folderName": "Hello World"
}
}'
curl -X POST https://eu.api.novu.co/v1/events/trigger \
-H "Authorization: ApiKey XXX" \
-H "Content-Type: application/json" \
-d '{
"name": "files-uploaded",
"to": [
{
"type": "Topic",
"topicKey": "files-uploaded_8979296d-0c0c-4d83-bd0e-d58e66fc8cc2"
}
],
"payload": {
"folderName": "Hello World"
}
}'
Response:
{"data":{"acknowledged":true,"status":"processed","transactionId":"0c291d7a-bbb6-4895-a869-50dca774a65e"}}
{"data":{"acknowledged":true,"status":"processed","transactionId":"0c291d7a-bbb6-4895-a869-50dca774a65e"}}
18 replies
NNovu
Created by Sebastian Küsters on 10/25/2023 in #💬│support
Trigger a topic
@Gali Baum today I found time to seed our new account in the EU region. I tried to trigger the topic as you descibed, but no success :/ Via .NET SDK the response is:
{"message":"workflow_not_found","error":"Unprocessable Entity","statusCode":422}
{"message":"workflow_not_found","error":"Unprocessable Entity","statusCode":422}
This is the .NET snippet:
var dto = new EventCreateData()
{
EventName = notification.WorkflowTriggerId,
Payload = notification.Payload,
Overrides = new
{
Name = notification.WorkflowTriggerId,
To = new
{
Type = "Topic",
TopicKey = topicKey
}
}
};
var novuResponse = await _novuClient.Event.Trigger(dto);
var dto = new EventCreateData()
{
EventName = notification.WorkflowTriggerId,
Payload = notification.Payload,
Overrides = new
{
Name = notification.WorkflowTriggerId,
To = new
{
Type = "Topic",
TopicKey = topicKey
}
}
};
var novuResponse = await _novuClient.Event.Trigger(dto);
18 replies
NNovu
Created by Sebastian Küsters on 10/25/2023 in #💬│support
Trigger a topic
Will try it out later - right now I am seeding the local setup. There I am facing some timeout issues agains Novu API when calling GET topics - need to check this first out. But I will update you as soon as I tried it.
18 replies
NNovu
Created by Sebastian Küsters on 10/25/2023 in #💬│support
Trigger a topic
@Gali Baum thanks for the response - via the .NET SDK I can not extend the object dynamically like in node.js For that reason I think the best is that I get information about the API, so that I can do the call without using the SDK. Can you help me there?
18 replies
NNovu
Created by Sebastian Küsters on 9/18/2023 in #💬│support
TriggerTopicAsync slows down
We are using Azure Cache for Redis as Redis cache. MongoDB indexes I have not checked - need to do that.
8 replies
NNovu
Created by Sebastian Küsters on 9/18/2023 in #💬│support
TriggerTopicAsync slows down
Sorry, my fault - 0.1.6 was helm chart version... My novu version is 0.15.0
8 replies
NNovu
Created by Sebastian Küsters on 9/18/2023 in #💬│support
TriggerTopicAsync slows down
Hi @dimagrossman we have never upgraded, we deployed the version 0.1.6 once and started to test there. During testing we detected this issue.
8 replies
NNovu
Created by Sebastian Küsters on 7/5/2023 in #💬│support
Switch Workflow Notification template if Digest
Also interesting Insight, thanks
12 replies
NNovu
Created by Sebastian Küsters on 7/5/2023 in #💬│support
Switch Workflow Notification template if Digest
This works fine, better then the if-statement 🚀
12 replies
NNovu
Created by Sebastian Küsters on 7/5/2023 in #💬│support
Add dynamic filter to a topic
@Pawan Jain will try it out later
18 replies
NNovu
Created by Sebastian Küsters on 7/5/2023 in #💬│support
Add dynamic filter to a topic
I could also use the REST API instead of SDK meanwhile. But @Pawan Jain when I set the Actor how will the Filter then look like?
18 replies
NNovu
Created by Sebastian Küsters on 7/5/2023 in #💬│support
Add dynamic filter to a topic
Interesting and how would I use the Actor in the Filter?
18 replies
NNovu
Created by Sebastian Küsters on 6/15/2023 in #💬│support
Status of translation support
Hey @tomerbarnea thanks for your reply. We can schedule a call, can you send me your meeting booking link?
4 replies