It's all about the answers!

Ask a question

Cannot connect to ClearQuest programmatically through RESTAPI since migration to 9.0.1.5


Pat K (112) | asked Mar 19 '19, 7:12 a.m.
edited Mar 19 '19, 7:14 a.m.

hello,
I'm writing to you because my organization is using ClearQuest.
We  use the rest API to do queries through a programming language named groovy (based on Java).
Everything was working fine until we migrated to the 9.0.1.5 version, I cannot do any URL query anymore through a script as I always have this answer back :

Unable to tunnel through proxy. Proxy returns "HTTP/1.0 502 Bad Gateway"

We didn't change our proxy settings and everything worked fine before the migration.

The URL format is right (I can enter this URL right into a browser and it will work)

an example of code to connect to ClearQuest through REST API and parse the XML page:

def urlClearQuest = "https://clearquest.MyCompany.hub/cqweb/restapi/CQat/dataBase/RECORD/databaseId?format=XML&loginId=MyLogin&password=MyPassword&noframes=true"  
urlClearQuest.toURL() 
def findProductID = new XmlSlurper().parse(urlClearQuest)

</pre>

This  triggers this error :
Unable to tunnel through proxy. Proxy returns "HTTP/1.0 502 Bad Gateway"

And as I said, entering the URL directly into a browser cause no problems.
Kind regards,

Accepted answer


permanent link
Ralph Schoon (63.3k33646) | answered Mar 19 '19, 8:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 19 '19, 8:38 a.m.

 The ClearQuest forum is here: https://developer.ibm.com/answers/index.html

This is not a ClearQuest Forum.

Ralph Schoon selected this answer as the correct answer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.