N
Novu2mo ago
Nitish

Hi All,

I am trying to create a subscriber from python sdk and passing all the details below:
subscriber = SubscriberDto(
subscriber_id="999", # Unique identifier for the subscriber
first_name="Nitish", # Subscriber's first name
email="[email protected]", # Email (optional, for email notifications)
avatar="https://example.com/avatar.jpg", # Avatar URL (optional)
channels=[
SubscriberChannelSettingsDto(
provider_id=enums.provider.PushProviderIdEnum.FCM, # Push provider (e.g., Firebase Cloud Messaging)
_integration_id="676d320dac10291e68132c42",
credentials={
"device_tokens":["fhkdfhksd"]
},
)
]
)
response = SubscriberApi().create(subscriber=subscriber)
subscriber = SubscriberDto(
subscriber_id="999", # Unique identifier for the subscriber
first_name="Nitish", # Subscriber's first name
email="[email protected]", # Email (optional, for email notifications)
avatar="https://example.com/avatar.jpg", # Avatar URL (optional)
channels=[
SubscriberChannelSettingsDto(
provider_id=enums.provider.PushProviderIdEnum.FCM, # Push provider (e.g., Firebase Cloud Messaging)
_integration_id="676d320dac10291e68132c42",
credentials={
"device_tokens":["fhkdfhksd"]
},
)
]
)
response = SubscriberApi().create(subscriber=subscriber)
and getting below response
{
"error": "Bad Request",
"statusCode": 400,
"timestamp": "2025-01-07T14:19:04.111Z",
"path": "/v1/subscribers",
"message": "Subscribers environment (676bbaccd42d607eae6bad68) do not have active undefined integration.",
"ctx": {
"error": "Bad Request",
"statusCode": 400
}
}
{
"error": "Bad Request",
"statusCode": 400,
"timestamp": "2025-01-07T14:19:04.111Z",
"path": "/v1/subscribers",
"message": "Subscribers environment (676bbaccd42d607eae6bad68) do not have active undefined integration.",
"ctx": {
"error": "Bad Request",
"statusCode": 400
}
}
Can anyone tell me what I am doing wrong? I have active push notification integration.
3 Replies
Pawan Jain
Pawan Jain4w ago
@Nitish Could you share the transactionId for this workflow trigger event? TransactionId can be copied from activity feed page @Nitish We are working on our new python sdk and looking for early testers. Would you be interested in helping us in testing the SDK before it is available to use for all? cc: @Emil Pearce
Nitish
NitishOP4w ago
Hi Pawan, I would love to test the sdk.
empe
empe4w ago
Yey! Hey @Nitish, please comment under the pinned post here #python-sdk

Did you find this page helpful?