I seem to have a problem when I activate the verbose mode.
Without verbose mode, this code works :
var client = new SendCloudApi.Net.V2.SendCloudApi("xxx", "yyy");
var putParcel = new CreateParcel
{
Id = 12345,
Name = "NAME"
};
await client.Parcels.Update(putParcel);
But with verbose mode :
var client = new SendCloudApi.Net.V2.SendCloudApi("xxx", "yyy", verbose: true);
The same code throws a NullReferenceException :
System.NullReferenceException: 'Object reference not set to an instance of an object.'
After investigation, it seems that the error is in SendCloudApiBase.cs:L114, where parameters is null :
parameters.Add("errors", "verbose-carrier");
The reason is that the Update<T> method pass null instead of a Dictionary :
Hi,
I seem to have a problem when I activate the verbose mode.
Without verbose mode, this code works :
But with verbose mode :
var client = new SendCloudApi.Net.V2.SendCloudApi("xxx", "yyy", verbose: true);
The same code throws a NullReferenceException :System.NullReferenceException: 'Object reference not set to an instance of an object.'
After investigation, it seems that the error is in SendCloudApiBase.cs:L114, where
parameters
is null :parameters.Add("errors", "verbose-carrier");
The reason is that the Update<T> method pass
null
instead of a Dictionary :I see that only the Get<T> method pass a Dictionary, but the other methods pass
null
.Did i miss something, or is there really an issue there ?