I am trying to set up an API connection to some publicly available statistical infomation. The connection string I am putting into the Data Server set up will not work when I add in the sample = syntax. To give an example of what I mean I've used the Pokemon API below - if I enter in a JDBC URL of the following:
jdbc:ibmcognos:autorest:https://pokeapi.co/api/v2/pokemon/5
The test returns a value of success but when I try to query the data in the autorest table there is no data of consequence in it. If I try using the sample syntax so entering the following:-
jdbc:ibmcognos:autorest:sample='https://pokeapi.co/api/v2/pokemon/5';
The test fails with the following error:-
XQE-DS-0006 Unable to logon to the data source.
[IBM Cognos][AutoREST JDBC Driver][AutoREST]I/O Error Connect to pokeapi.co:443 [pokeapi.co/172.64.99.38, pokeapi.co/172.64.98.38] failed: Connection timed out: connect
Caused by: com.ibm.cognos.externals.org.apache.http_4_5_13.conn.HttpHostConnectException: Connect to pokeapi.co:443 [pokeapi.co/172.64.99.38, pokeapi.co/172.64.98.38] failed: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
I/O Error Connect to pokeapi.co:443 [pokeapi.co/172.64.99.38, pokeapi.co/172.64.98.38] failed: Connection timed out: connect
Caused by: com.ibm.cognos.externals.org.apache.http_4_5_13.conn.HttpHostConnectException: Connect to pokeapi.co:443 [pokeapi.co/172.64.99.38, pokeapi.co/172.64.98.38] failed: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
I/O Error Connect to pokeapi.co:443 [pokeapi.co/172.64.99.38, pokeapi.co/172.64.98.38] failed: Connection timed out: connect
Caused by: com.ibm.cognos.externals.org.apache.http_4_5_13.conn.HttpHostConnectException: Connect to pokeapi.co:443 [pokeapi.co/172.64.99.38, pokeapi.co/172.64.98.38] failed: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
Connect to pokeapi.co:443 [pokeapi.co/172.64.99.38, pokeapi.co/172.64.98.38] failed: Connection timed out: connect
Connection timed out: connect
I know the above should work as I followed a video provided by PMSquare that showed the API bringing back data. I get the same issue no matter what JDBC URL I enter.
I'd appreciate any help on this one.
------------------------------
Lorraine McAllister
------------------------------