brandonseydel/MailChimp.Net

GetActivitiesAsync Method is throwing an exception

Closed this issue · 1 comments

MailChimpManager.Members.GetActivitiesAsync(string listId, string emailAddressOrHash, BaseRequest request = null)

The above method is throwing the next Exception:

MailChimpNotFoundException [MailChimp.Net] Unable to find the resource at https://us7.api.mailchimp.com/members/c9894233dc3ce3939f7866f5626d6c6e/activity

It's missing the 3.0, the correct address for searching the resource is as follows:
https://us7.api.mailchimp.com/3.0/lists/3efa84d5b4/members/15d35e827f4ca4643b6188fd3a4ebc39/activity

public List<Activity> getActivities(Member member)
{
var richiesta = new BaseRequest() { FieldsToExclude = "_links"};
var t = manager.Members.GetActivitiesAsync(member.ListId, member.EmailAddress);
t.Wait();
return t.Result.ToList();
}

Stack trace:

MailChimp.Net.Core.MailChimpNotFoundException: Unable to find the resource at https://us7.api.mailchimp.com/members/c9894233dc3ce3939f7866f5626d6c6e/activity
in MailChimp.Net.Core.Helper.d__0.MoveNext()
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
in MailChimp.Net.Logic.MemberLogic.d__6.MoveNext()
--- Fine della traccia dello stack dell'eccezione interna ---
in System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
in System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
in System.Threading.Tasks.Task.Wait()
in MailChimpWPFClient.Models.GestoreMailchimp.getActivities(Member member) in C:\TFSMentor\Mentor\Mentor\MailChimpWPFClient\Models\GestoreMailchimp.cs:riga 198
in MailChimpWPFClient.ViewModels.VMOperationSmile.<>c__DisplayClass69_0.b__0() in C:\TFSMentor\Mentor\Mentor\MailChimpWPFClient\ViewModels\VMOperationSmile.cs:riga 747
---> (Eccezione interna 0) MailChimp.Net.Core.MailChimpNotFoundException: Unable to find the resource at https://us7.api.mailchimp.com/members/c9894233dc3ce3939f7866f5626d6c6e/activity
in MailChimp.Net.Core.Helper.d__0.MoveNext()
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
in MailChimp.Net.Logic.MemberLogic.d__6.MoveNext()<---

Stale issue message