Unable to do a PUT, DELETE or POST


"I'm unable to do a PUT, DELETE or POST request in Bonita 7.4.3, using the REST API. I'm always getting a 401 Http error, despite adding the cookie to every request. The GET request works with no problem"


Submitted by Sean McP on Wed, 04/19/2017 - 05:05

You've definitely logged in?

Have you tried it through an Advanced REST Client (like chrome) manually. We tend to try this in these cases:

  • Login
  • Do Get
  • Do Post
  • Logout

Gives us the idea of where it goes wrong...


Submitted by diana.bento on Wed, 04/19/2017 - 12:01

I´m trying to do this steps. But when I try to do DELETE and show error "401 Unauthorized".

2 answers



Hi Diana,
I'm rather new at Bonita myself, but recently have managed to make a full rest workflow. I had the same problem as you have. The only way I could solve it was:
Install Postman (an alternative to advanced rest client). It stores the cookies for you, so it should behave just like a browser).
Test all GET, POST, PUT, DELETEs there. Once is working, check the full messages sent.
Then, try to produce the same messages in Bonita (headers, url, payload). In order to know exactly what you are sending from Bonita, I installed Fliddler, a network monitor. In order to analize Bonita traffic, you must add proxy settings in the REST connector in Bonita (I think that localhost:8888) but you can check that in Fiddler.
I'ts a lot of work, and it took me a whole week to get it working ok, but now it's OK.
If you are still stuck by now, give it a try.



Submitted by Sean McP on Wed, 04/19/2017 - 22:59

Thanks to @gmoriello,

Postman is a chrome extension...

Fliddler I think is actually Fiddler available here: https://www.telerik.com/download/fiddler

and if you're a real geek ... check out http://www.piedpiper.com/#home from the hit HBO series Silicon Valley... found it by mistake.


Submitted by diana.bento on Thu, 04/20/2017 - 11:25

I try to do in postman and the result is the same: GET works; DELETE, PUT and POST doesn´t works.