Unable to get a valid response from Github while adding an Linked repository

Still need help?

The Atlassian Community is here for you.

Ask the community

For Atlassian eyes only

This article is Work In Progress and cannot be shared with customers.

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.


While trying to add a GitHub Enterprise when creating the Linked repository, a "The Server returned invalid response(not a JSON object)" error is seen in Bamboo UI.


Observed on Bamboo 8.1.8, but might be applicable for any other supported versions.


A simple cURL or Telnet command can help to cross-check the availability of network connection between the Bamboo server and the GitHub instance.

The test can be performed using the commands below. In the examples given below, both Successful and Unsuccessful results are given. 

Unsuccessful outcome of the commands looks like below, 

$ curl -i https://<Github URL> 

curl: (6) Could not resolve host: github.com


$ telnet <Github URL> <Port>


Successful outcome of the commands looks like below,

telnet <Github URL> <Port>

Successful Result:
Connected to github.com.
Escape character is '^]'.


curl -i https://<Github URL> 

Successful Result: 
HTTP/2 200 
server: GitHub.com
date: Tue, 08 Nov 2022 22:59:30 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Language, Accept-Encoding, Accept, X-Requested-With
content-language: en-US
etag: W/"2361a59243f4de7629d4ca75313b86b9"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin


There are two possible causes:

  1. Bamboo server might be in a Secure network (secure zone) and GitHub is not part of that same secure zone. Usually, if the user needs to be connected through a VPN to access either Github or Bamboo, this represents the Secure zone.
  2. A new GitHub instance is being added and it is not whitelisted in the Firewall rules.


Check the Network connectivity between the Bamboo and Github servers. Once you enable the network connection between both, it should work as expected.

Last modified on Nov 30, 2022

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.