I am trying to send request to JIRA cloud server which we have to fetch REST APIs through Spring Rest Template. But I am unable to establish connection. In console it is showing like connection refused.
I am using Spring Rest Template basic authorization feature. Kindly help me how to establish connection from Java to Jira. Also I have tried JRJC library, there also its showing same console error.
"unknown host" means that your computer cannot find the computer you are telling it to connect to.
Check that the destination server exists and that your network can route to it (try nslookup as a starter)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, I resolved the issue and could get the response using Jira Rest Client
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you first try with "curl" from command prompt? Is the curl command working fine?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also if we try to fetch from Angular 5 Http get, it says,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
have you tried jsonP with angularjs?
var url = "https://api.getevents.co/event?&lat=41.904196&lng=12.465974";$http({ method: 'JSONP', url: url}).success(function(status) {
//your code when success
}).error(function(status) {
//your code when fails
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey...thanks for your quick reply. I am able to fetch data using Spring Boot rest template. My system was under organization proxy control so I set the proxy and now able to fetch.
Only one query, how to do this on Angular 5 if we are under proxy.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
angular is also running on your localhost, so if you local system can pass the proxy thus so can angular code. You have to make sure that your local system is allowed to cross the proxy and use JsonP concept in angularJS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.