Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"event" is not present in response #87

Open
pedrocuevas24 opened this issue Mar 28, 2023 · 0 comments
Open

"event" is not present in response #87

pedrocuevas24 opened this issue Mar 28, 2023 · 0 comments

Comments

@pedrocuevas24
Copy link

In some cases when it happens that the response does not bring the 'event' node, this causes the library to return an error since the model validates that the event is always present.

For Example:

curl :

curl --request GET \ --url 'https://api.sendinblue.com/v3/smtp/statistics/events?limit=2500&offset=0&email=jerico_af%40hotmai.com&sort=desc' \ --header 'accept: application/json' \ --header 'xxxx'

response:

{ "events": [ { "email": "jerico_af@hotmai.com", "date": "2023-03-27T13:14:56.164-03:00", "subject": "Transfiere tu vehículo 100% online 24/7", "messageId": "<202303271614.95987994528@smtp-relay.mailin.fr>", "event": "requests", "tag": "", "ip": "::", "from": "hola@autofact.cl", "templateId": 48 }, { "email": "jerico_af@hotmai.com", "date": "2023-03-27T13:14:56.164-03:00", "subject": "Transfiere tu vehículo 100% online 24/7", "messageId": "<202303271614.95987994528@smtp-relay.mailin.fr>", "tag": "", "ip": "::", "from": "hola@autofact.cl", "templateId": 48 } ] }

Error library:

File "/lib/python3.9/site-packages/sib_api_v3_sdk/models/get_email_event_report_events.py", line 215, in event raise ValueError("Invalid value forevent, must not be None") # noqa: E501 ValueError: Invalid value for event, must not be None``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant