sendinblue / APIv3-java-library

SendinBlue's API v3 Java Library
MIT License
42 stars 12 forks source link

emailCampaignsApi.getEmailCampaign(ID) parseException #13

Closed lionelbouth closed 4 years ago

lionelbouth commented 5 years ago

First, I send an Email campagain as draft in sendinblue without field sechudledAt.

Next, i'm trying to get the campaign using

EmailCampaignsApi apiInstance = new EmailCampaignsApi();
GetEmailCampaign result = apiInstance.getEmailCampaign(campaignId);

Then I have the error Exception in thread "main" org.threeten.bp.format.DateTimeParseException: Text '' could not be parsed at index 0

It's because you should not serialize the field scheduledAtwith an empty String but NULL

Thanks

DienNM commented 4 years ago

I got the same issue

amitsendinblue commented 4 years ago

Hi @lionelbouth @DienNM , Please try the latest version 4.0.0 and let us know if you face the same issue again.

Thanks, Amit Joshi