Bulk subscriber using Python Script

Hello Team!! Hello Team! I have successfully added our user to Novu using a Python script. Additionally, I have implemented user channel functionality within the same script. Everything is working fine. However, when I update the user's device token, it creates a new channel.We Have Self-Hosted Account!Novu versions=1.10.0
12 Replies
Pawan Jain
Pawan Jain7mo ago
@darrick_scott Would share example on what exactly you mean by a new channel while updating token
darrick_scott
darrick_scott7mo ago
Script
No description
darrick_scott
darrick_scott7mo ago
Script Response
No description
Novu_Bot
Novu_Bot7mo ago
@darrick_scott, you just advanced to level 1!
darrick_scott
darrick_scott7mo ago
when update same user token using update user cred response
No description
darrick_scott
darrick_scott7mo ago
@Pawan Jain This is just example
Pawan Jain
Pawan Jain7mo ago
@darrick_scott Thanks for sharing, there could be a race condition. What is your self-host version? @BiswaViraj I think it is related to a bug we were trying to reproduce few days back https://discord.com/channels/895029566685462578/1179034323723239444 cc:- @Paweł T.
darrick_scott
darrick_scott7mo ago
versions=1.10.0 @Pawan Jain should we have to update novu version @Pawan Jain ?
Pawan Jain
Pawan Jain7mo ago
@darrick_scott With the bulk create subscriber API, only subscriber metadata should be added. channel credentials should be added after creating the subscriber using this API
darrick_scott
darrick_scott7mo ago
We have 0.5 Million users in our database, should we send a request for each user? or any proficient way you suggest @Pawan Jain
Pawan Jain
Pawan Jain7mo ago
I would suggest to update the credentials for each user separately
darrick_scott
darrick_scott7mo ago
Okay @Pawan Jain ,Thanks For The Support!
Want results from more Discord servers?
Add your server