Jenkins: Error getting available projects Unexpected token URL: http://<domain>/<instance>/api/json?depth=1
For some reason reactor cannot get the projects.
Error getting available projects
Unexpected token
URL: http://<domain>/<instance>/api/json?depth=1
(note, I took out domain and instance).
I can go to this URL in my browser without any issue, the JSON shows.
I can use other similar tools to load my Jenkins projects with no problem using the same URL.
Using Chrome: Version 28.0.1500.71
Using Jenkins ver. 1.509.2
Jenkins support has been updated significantly in BuildReactor 0.8.0 and this call is not used any more.
-
Technically the URL requested is something like
https://ci.jenkins-ci.org/api/json?depth=1&_=1375159574253
where the last parameter is a random number. This is to avoid cached responses.
The response and error details would only be visible in the background page though so to find that out you'd need to go through the steps I described.
Without knowing what is returned in the response it's difficult to say anything more. -
That happens if the response is not JSON, perhaps credentials are wrong ?
Need some more info on that.
You can check what is the processed response:
1) Go to extensions tab
2) enable developer mode
3) click "background page" for BR
4) go to network tab
5) leave it open and click "show" on options page again
The request BR received should show up in the last row, check if it's the same response you got in the browser
Also check "console" tab for any errors. -
Kyle Brown commented
Ah, note, I get this error when i fill out the information on setting up a new config and click 'Show'.