chainpoint-js
chainpoint-js copied to clipboard
`http://${targetIP}/peers` requests are timing out for ips mentioned in network.js
https://github.com/chainpoint/chainpoint-js/blob/1bf369cdd79163198471cd0d2b2725de58528998/lib/utils/network.js#L63 has the following ips mentioned:
['3.142.136.148', '18.118.26.31', '3.133.161.241', '18.220.31.138', '3.145.43.113']
And the requests to http://${targetIP}/peers
are failing where targetIP
is one of the above IPs.
The following script:
const axios = require('axios');
const _ = require('lodash');
const IP_ADDRESSES = ["3.142.136.148", "18.118.26.31", "3.133.161.241", "18.220.31.138", "3.145.43.113"];
const TOTAL_ATTEMPTS = 100;
async function testRandomPeerEndpoints() {
let successCount = 0, failureCount = 0;
for (let i = 0; i < TOTAL_ATTEMPTS; i++) {
const randomIp = _.sample(IP_ADDRESSES);
try {
console.log(`Attempt ${i + 1}: Testing ${randomIp}...`);
await axios.get(`http://${randomIp}/peers`, {timeout: 30000}); // 30 seconds timeout
console.log(`Success for ${randomIp}`);
successCount++;
} catch (error) {
console.log(`Failed for ${randomIp}: `, error.message);
failureCount++;
}
}
console.log(`\nSummary: ${successCount} successes, ${failureCount} failures out of ${TOTAL_ATTEMPTS} attempts.`);
}
testRandomPeerEndpoints();
Produces the following result:
None of the IPs seem to be responding 😕 Please share if I'm doing something incorrectly here. Many thanks!
Same here. Seems like the project is dead.