Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
When I was calling a http service using oauth Bearer token method of trestclient I am getting 400 service error but for the same url in postman I was able to retrieve the expected output.
How can I troubleshoot this issue or is there any other component apart from trestclient we can use for this.
@baladevi can you post screenshots of how ur calling.
@baladevi i was not having any API to test so i used postman API itself for testing the Authorization part.Try like below and let me know if it works.
Let me know how it goes. happy to help
Hello,
You could access to your response header with tRESTClient.
((java.util.Map<String,java.util.List<String>>)globalMap.get("tRESTClient_1_HEADERS"))
Best regards
Sabrina
Hi,
I get Error in trestclient for that particular request. The same request works well and good with thttprequest component.
The URL what I am trying to use will send the response in header which I can able to retrieve only in the trestclient not from the thtprequest component. I have attached the screenshots of the success response when I use thttprequest component and the Error response when using trestclient component.
Regards,
Bala
Hi,
Sorry i think I missed the screen shots in the previous post
I get Error in trestclient for that particular request. The same request works well and good with thttprequest component.
The URL what I am trying to use will send the response in header which I can able to retrieve only in the trestclient not from the thtprequest component. I have attached the screenshots of the success response when I use thttprequest component and the Error response when using trestclient component.
Regards,
Bala
I tried to sniff the request via Wireshark...
Can someone help with this?
Regards,
Bala
Sorry @baladevi i don't have any such API to call with such "Accept".