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
Script Response
@darrick_scott, you just advanced to level 1!
when update same user token using update user cred response
@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!