Possible .NET SDK Bug

Started by izaakkelley3 replies16 views
izaakkelleyOriginal post
#1

Archived from the Transloadit support forum. Originally posted on April 28, 2014; details may be outdated, see our docs for current behavior. Original thread

FYI:

I think you have a bug in the method called DeleteAssembly in your .NET SDK.

If you pass in an assembly Id, the resulting url it tries to use resolves with this syntax…

http://api2.transloadit.com/[assembly id here]/assemblies

I believe it should be…

http://api2.transloadit.com/assemblies/[assembly id here]

In order to fix this I created a property called…

AssemblyId in the ApiRequest.cs file.

I then concatenated it to the Path in the BuildIUri() method.

ub.Path = Path + “/” + AssemblyId;

Than back in the original Method called DeleteAssembly, I set the AssemblyId property to the passed in assembly Id prior to the request.

Cheers

kvzTransloadit team
#2

Hi,

Thanks for reporting! Would you mind reporting this at the Github project over at https://github.com/nkranitz/transloadit-csharp-sdk?

The author will be better able to give you a good response, or maybe even merge in a PR?

Let me know!
Kind regards,
Kevin

izaakkelley
#3

Will do.

tks

tim-kos
#4

Okay closing this then as the discussion will be in the github issue of the .net sdk repo.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos