Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in DeleteAssembly method #6

Open
ezoc opened this issue Apr 28, 2014 · 0 comments
Open

Bug in DeleteAssembly method #6

ezoc opened this issue Apr 28, 2014 · 0 comments

Comments

@ezoc
Copy link

ezoc commented Apr 28, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant