Error while updating credentials

using
novu==1.10.0
novu==1.10.0
Here is the subscriberId -
I am getting this error while updating credentials of above subscriber,
I am getting this error while updating credentials of above subscriber,
2023-11-30 13:42:18,296 - Novu - ERROR - 500 Server Error: Internal Server Error for url: https://api.novu.co/v1/subscribers/0x047BcCf8509D92307aBF7fEbe607419e410B3290/credentials``` I am updating credentials by below method,
self.subscriber_api.credentials(user_data['walletKey'], "fcm",device_tokens= user_data.get("deviceTokens",None))
self.subscriber_api.credentials(user_data['walletKey'], "fcm",device_tokens= user_data.get("deviceTokens",None))
Can anyone please guide me, if I am doing anything wrong here.
5 Replies
Pawan Jain
Pawan Jain13mo ago
@puneettiwari61 Are you using python SDK?
puneettiwari61
puneettiwari61OP13mo ago
yes
Pawan Jain
Pawan Jain13mo ago
@puneettiwari61 Could you please try with this user_data.get("deviceTokens", [])
puneettiwari61
puneettiwari61OP13mo ago
sure trying that.
Novu_Bot
Novu_Bot13mo ago
@puneettiwari61, you just advanced to level 1!
Want results from more Discord servers?
Add your server