We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http://${targetIP}/peers
chainpoint-js/lib/utils/network.js
Line 63 in 1bf369c
['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.
targetIP
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!
The text was updated successfully, but these errors were encountered:
Same here. Seems like the project is dead.
Sorry, something went wrong.
No branches or pull requests
chainpoint-js/lib/utils/network.js
Line 63 in 1bf369c
['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 wheretargetIP
is one of the above IPs.The following script:
Produces the following result:
None of the IPs seem to be responding 😕
Please share if I'm doing something incorrectly here. Many thanks!
The text was updated successfully, but these errors were encountered: