BuildReactor icon indicating copy to clipboard operation
BuildReactor copied to clipboard

AjaxError - connection failed when trying to connect to jenkins

Open oshai opened this issue 6 years ago • 3 comments

I am trying to configure new Jenkins dashbaord but get an error: AjaxError - connection failed when trying to connect to jenkins. I think this is related to the issue here: https://github.com/AdamNowotny/BuildReactor/issues/43

Might be related to firewall or other settings. Any idea how to overcome that?

oshai avatar Nov 19 '19 08:11 oshai

Would need more information from the background page console and network tab. If it's authentication related then logging in in the browser first might help.

AdamNowotny avatar Nov 20 '19 21:11 AdamNowotny

Below is what I see in console, doesn't looks like auth problem. maybe the /jenkins in the url? or maybe I have to setup an ssh tunnel? ping to the server works.

jenk

oshai avatar Nov 21 '19 10:11 oshai

I have the same problem which reporting AjaxError.

2019-12-18T02:45:23.802Z core.messages 
Object
name: "availableProjects"
response:
error:
message: "cannot GET http://xxx.xxxxxx.cn:8080/api/json?tree=jobs[_class,name,url,buildable,fullName,jobs[_class,name,url,buildable,fullName,jobs[_class,name,url,buildable,fullName]]] (400)"
name: "AjaxError"
__proto__: Object
__proto__: Object
serviceSettings: {baseUrl: "jenkins", name: "xxx_jenkins", projects: Array(0), url: "http://jenkins.xxxxxx.cn:8080", username: "xxxxxxx", …}

xfyuan avatar Dec 18 '19 02:12 xfyuan