janssenr / SendCloudApi.Net

A C#/.net wrapper for the SendCloud API
MIT License
6 stars 5 forks source link

SendCloudApiParcelDocumentsResource.Download - Double slash in URL results in 404 response #24

Closed lukas-iamd closed 1 year ago

lukas-iamd commented 1 year ago

Hi

Downloading Parcel Documents doesn't work anymore.

The slash after the HostUrl must be removed as the host URL ends with a slash. The SendCloud API does not accept this anymore and returns a 404 Not Found error.

// File SendCloudApiParcelDocumentsResource.cs
// Line 21
 Uri uri = Client.GetUrl($"{HostUrl}/parcels/{parcelId}/documents/{type}", parameters);
janssenr commented 1 year ago

Removed the slash after the HostUrl.

lukas-iamd commented 1 year ago

Hi

Thanks for the fast response. When could we expect a new release to be published with this fix?

janssenr commented 1 year ago

I just published release 2.0.25 to NuGet. This release also includes support for V3 of the SendCloud API, so there might be some more changes you have to make.