sendinblue / APIv3-python-library

SendinBlue's python library for API v3
MIT License
82 stars 40 forks source link

Error: Invalid value for `user_name`, must not be `None` - AccountApi #80

Closed PierreAnken closed 2 years ago

PierreAnken commented 2 years ago

Hello,

Using following code with my API Key result in the error in title:

configuration = sib_api_v3_sdk.Configuration()
configuration.api_key['api-key'] = '<my_key>'
api_instance = sib_api_v3_sdk.AccountApi(sib_api_v3_sdk.ApiClient(configuration))
account_data = api_instance.get_account()

After debugging the code it seemed that the API call is working fine and the data are returned. image

The bug is caused by the deserialization trying to get the value 'data' of 'relay', which is empty.

image

PierreAnken commented 2 years ago

Issue solved after ticket opening by the company