proxy checked, invalid
See original GitHub issuecheck-proxy is not working on my device i tested multiple valid proxies(http(s)/socks) but it always prints: proxy checked, invalid
//client.js
const checkProxy = require('check-proxy').check;
checkProxy({
testHost: 'ping.rhcloud.com', // put your ping server url here
proxyIP: '127.0.0.1', // proxy ip to test
proxyPort: 44443, // proxy port to test
localIP: '104.237.226.134', // local machine IP address to test
connectTimeout: 15, // curl connect timeout, sec
timeout: 10, // curl timeout, sec
websites: [
{
name: 'example',
url: 'http://www.example.com/',
regex: /example/gim, // expected result - regex
},
{
name: 'yandex',
url: 'http://www.yandex.ru/',
regex: /yandex/gim, // expected result - regex
},
{
name: 'google',
url: 'http://www.google.com/',
regex: function(html) { // expected result - custom function
return html && html.indexOf('google') != -1;
},
},
{
name: 'amazon',
url: 'http://www.amazon.com/',
regex: 'Amazon', // expected result - look for this string in the output
},
]
}).then(function(res) {
console.log('final result', res);
}, function(err) {
console.log('proxy rejected', err);
});
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Proxy fails to validate
If you encounter failures when you enter your proxy settings, you can verify that your proxy credentials are correct and verify your firewall...
Read more >How to Fix “There Is Something Wrong With the Proxy ...
1. Check if You Have a Stable Internet Connection · 2. Restore Your Proxy Server to Its Default Settings · 3. Disabling Your...
Read more >How to Solve Proxy Error Codes - The Ultimate Guide!
Fix 300 error code by checking the HTTP headers and make sure the URL ... or a proxy and receives an invalid response...
Read more >How to fix "There is something wrong with the proxy server ...
Method 3: Checking your Proxy Settings · On your keyboard, press Windows Key+S. · Type “control panel” (no quotes), then hit Enter. ·...
Read more >How to Fix Unable to Connect to the Proxy Server
2. Check if the Settings in your Windows are Correct ... Sometimes, the cause of unable to connect to proxy server error is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Any server error is thrown as the proxy checked, invalid even if all the other things are running fine. Also if the proxy is not working, it gives the same error.
Exactly. Any error will throw
proxy checked, invalid
exception.