N
Novu•3mo ago
abdlrahmansaber.

Channels Property Not Respected When Creating or Updating Subscriber (API Issue)

When creating a new subscriber: when I add the channels property, it does not seem to be respected, and no channels are created. The same issue occurs when using the update endpoint. Am I doing something wrong? Here is the payload I used:
{
"name": "Abdlrahman",
"email": "[email protected]",
"subscriberId": "123456",
"channels": [
{
"providerId": "one-signal",
"credentials": {
"deviceTokens": ["device-token"]
}
}
]
}
{
"name": "Abdlrahman",
"email": "[email protected]",
"subscriberId": "123456",
"channels": [
{
"providerId": "one-signal",
"credentials": {
"deviceTokens": ["device-token"]
}
}
]
}
6 Replies
Tomer Barnea
Tomer Barnea•3mo ago
Hey @abdlrahmansaber. I assume you are adding a subscriber here, correct? What's not working? No One Signal provider? Did you add an integration for One Signal?
Pawan Jain
Pawan Jain•3mo ago
@abdlrahmansaber. There is a bit of discrepancy here. channels field is available in open api spec and but included while creating a new subscriber Let me check with eng team for this
abdlrahmansaber.
abdlrahmansaber.•3mo ago
@Tomer Barnea, could you clarify what you mean by adding an integration for OneSignal? From what I understand, the source code should populate the channels property. However, when I call the endpoint and check the database or retrieve subscriber data using the GET endpoint, the channels property is empty. @Pawan Jain Thanks, FYI it's working for the bulk subscriber endpoint.
Tomer Barnea
Tomer Barnea•3mo ago
@abdlrahmansaber. I'll let @Pawan Jain take it from here, I think he might be more qualified 😄
Pawan Jain
Pawan Jain•3mo ago
@abdlrahmansaber. We have identified a bug in this flow, channels properties should be stored with new subscriber. We will fix the issue. I see you are self hosting Novu. You will have to wait till new release
abdlrahmansaber.
abdlrahmansaber.•3mo ago
@Pawan Jain Great, thanks for letting me know. I'll try to contribute and figure out what's going on, should I open an issue on GitHub?
Want results from more Discord servers?
Add your server