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
@darrick_scott
Would share example on what exactly you mean by a new channel while updating token
Script
![No description](https://cdn.answeroverflow.com/1208003921155592202/ray-so-export.png)
Script Response
![No description](https://cdn.answeroverflow.com/1208004174072250438/ray-so-export_2.png)
@darrick_scott, you just advanced to level 1!
when update same user token using update user cred response
![No description](https://cdn.answeroverflow.com/1208004324425211964/ray-so-export_1.png)
@Pawan Jain
This is just example
@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.
versions=1.10.0
@Pawan Jain
should we have to update novu version @Pawan Jain ?
@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
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
I would suggest to update the credentials for each user separately
Okay @Pawan Jain ,Thanks For The Support!