You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
senders argument for TransactionalEmailsApi.get_transac_blocked_contacts not optional #99
So I did some further testing - it appears that things work when making the call without the API. Let me demonstrate.
Using the API
try:
response=email_api.get_transac_blocked_contacts()
print(response)
exceptApiExceptionase:
print(f"Exception when calling TransactionalEmailsApi->get_transac_blocked_contacts: {e}")
results in
File "/lib/site-packages/sib_api_v3_sdk/api/transactional_emails_api.py", line 1543, in get_transac_blocked_contacts
(data) = self.get_transac_blocked_contacts_with_http_info(**kwargs) # noqa: E501
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/api/transactional_emails_api.py", line 1622, in get_transac_blocked_contacts_with_http_info
return self.api_client.call_api(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/api_client.py", line 327, in call_api
return self.__call_api(resource_path, method,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/api_client.py", line 171, in __call_api
return_data = self.deserialize(response_data, response_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/api_client.py", line 243, in deserialize
return self.__deserialize(data, response_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/api_client.py", line 282, in __deserialize
return self.__deserialize_model(data, klass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/api_client.py", line 626, in __deserialize_model
kwargs[attr] = self.__deserialize(value, attr_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/api_client.py", line 259, in __deserialize
return [self.__deserialize(sub_data, sub_kls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/api_client.py", line 282, in __deserialize
return self.__deserialize_model(data, klass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/api_client.py", line 628, in __deserialize_model
instance = klass(**kwargs)
^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/models/get_transac_blocked_contacts_contacts.py", line 57, in __init__
self.sender_email = sender_email
^^^^^^^^^^^^^^^^^
File "/lib/site-packages/sib_api_v3_sdk/models/get_transac_blocked_contacts_contacts.py", line 107, in sender_email
raise ValueError("Invalid value for `sender_email`, must not be `None`") # noqa: E501
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Invalid value for `sender_email`, must not be `None`
Activity
jgillmanjr commentedon Dec 20, 2024
So I did some further testing - it appears that things work when making the call without the API. Let me demonstrate.
Using the API
results in
Using requests
results in
So it appears that the method needs to handle the lack of the parameter a little differently.