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

PUT AND DELETE METHOD SUPPORT in SubbyClient #44

Closed
sanjay19834U opened this issue Apr 21, 2015 · 3 comments
Closed

PUT AND DELETE METHOD SUPPORT in SubbyClient #44

sanjay19834U opened this issue Apr 21, 2015 · 3 comments

Comments

@sanjay19834U
Copy link

Hi Sir,
we are creating stub using sc.startJetty(25030,defaultAdminPort, appHost, url.getFile());
and stubbs created sucessfully

Now i am tring to access all stubs using StubbyClient.java and its working fine in case of GET and POST method.

But during PUT and DELETE method facing following exception

"HTTP method PUT not supported when contacting stubby4j"

Following are the exception logs
2015-04-21T09:17:45.23+0000 [App/0] OUT stubbyRequestBody12b1b230-484d-4a2c-9873-1c1332a77a3d
2015-04-21T09:17:45.26+0000 [App/0] ERR 2015-04-21 09:17:45.262:INFO::http-nio-63379-exec-2: Logging initialized @61311ms
2015-04-21T09:17:45.26+0000 [App/0] OUT exception during make request
2015-04-21T09:17:45.27+0000 [App/0] ERR by.stub.exception.Stubby4JException: HTTP method 'PUT' not supported when contacting stubby4j

FOR DELETE
Connected, tailing logs for app msgdirmgmt-test10 in org cfc-his / space alpha as admin...

2015-04-21T07:54:39.72+0000 [App/0] OUT stubbyRequestBody12b1b230-484d-4a2c-9873-1c1332a77a3d
2015-04-21T07:54:39.73+0000 [App/0] OUT exception during make request
2015-04-21T07:54:39.74+0000 [App/0] ERR by.stub.exception.Stubby4JException: HTTP method 'DELETE' not supported when contacting stubby4j

@helpermethod
Copy link
Contributor

+1 I would love to use stubby4j in all of my projects because it's superior to all other alternatives but no support for PUT/DELETE is a bummer.

@azagniotov
Copy link
Owner

Sorry, I have been away! It is definitely a good idea!

@azagniotov
Copy link
Owner

Added support for PUT and DELETE in v3.2.3. Please report if any issues

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

3 participants