question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

proxy checked, invalid

See original GitHub issue

check-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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ChakshuGautamcommented, Nov 20, 2018

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.

0reactions
256catscommented, Dec 1, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found