GET /v1/notifications

I was trying to use the novu_py library to get notifications. however i had triggered some of the notifications without an integration set up yet for email. So the response is missing the providerId. then i get some pydantic error saying something like
"get_novu_events_after_datetime:42",
"message": "33 validation errors for Unmarshaller\nbody.data.0.jobs.0.executionDetails.0.providerId\n Field required [type=missing, input_value={'_id': '68597d141342bb29...25-06-23T16:13:08.762Z'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.11/v/missing\nbody.data.0.jobs.0.executionDetails.1.providerId\n Field required [type=missing, input_value={'_id': '68597d141342bb29...25-06-23T16:13:08.935Z'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.11/v/missing\nbody.data.0.jobs.0.executionDetails.2.providerId\n Field required [type=missing, input_value={'_id': '68597d151342bb29...25-06-23T16:13:09.272Z'}, input_type=dict]\n For further information visit
"get_novu_events_after_datetime:42",
"message": "33 validation errors for Unmarshaller\nbody.data.0.jobs.0.executionDetails.0.providerId\n Field required [type=missing, input_value={'_id': '68597d141342bb29...25-06-23T16:13:08.762Z'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.11/v/missing\nbody.data.0.jobs.0.executionDetails.1.providerId\n Field required [type=missing, input_value={'_id': '68597d141342bb29...25-06-23T16:13:08.935Z'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.11/v/missing\nbody.data.0.jobs.0.executionDetails.2.providerId\n Field required [type=missing, input_value={'_id': '68597d151342bb29...25-06-23T16:13:09.272Z'}, input_type=dict]\n For further information visit
2 Replies
Jonathan Licht
Jonathan LichtOP4mo ago
@Pawan Jain is it possible for us to contribute to this library to fix this issue? The change we would make is to not make provider ID a required field. Since if an integration is not set up when the notification is triggered, the providerId will not be returned okay i actually just reproduced this in again even though SES was set up this time so it is actively blocking us from using this endpoint
Pawan Jain
Pawan Jain4mo ago
Hey Jonathan

I am sharing the issue with team, and will share if it is possible to contribute externally since SDKs are auto generated

Did you find this page helpful?