Sonarqube api does not return any response

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Hi,
I am making a api call to get the quality gates information using curl command. Command executes but no response is given. When i tried to debug using -s and -v options in curl i am getting the below output.
From that what I could understand is server is accepting h2 requests where as my api call is in http/1.1.
Does anybody have any idea on how to resolve this.

Then it comes as mark bundle not supporting.
connection #0 to host **** left intact.
command: curl -H “Authorization: Bearer my_token” “https://sonarqube.mydomain.com/api/qualitygates/project_status?projectKey=project_name
can someone help me?
Thank you.

Hey there.

To start with, SonarQube doesn’t support using a bearer token. Take a look at the documentation on Web API Authentication