Skip to content

timeout and login decline after attempting to create connection while on corporate proxy #7

New issue

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

Open
QuantumRich opened this issue Sep 8, 2016 · 1 comment

Comments

@QuantumRich
Copy link

Hello,

I have jsforce-ajax-proxy running in the background, but when I create a connection in my JSForce app as such:

var conn = new jsforce.Connection({
    loginUrl : 'https://test.salesforce.com',
    proxyUrl : 'http://localhost:3123/proxy/'
});

and do a login as such:

conn.login(user, (pass+token), function(err, userInfo) {
    console.log("DEBUG");
    if (err) {
        return console.error(err);
    }

I do not even get my console logging statement as it hangs. Eventually, after a LONG while, I get a timeout error:

POST http://localhost:3123/proxy?(some number here) net::ERR_EMPTY_RESPONSE
DEBUG
Error: Access Declined(…)

This does not happen at all when I am not under the proxy (and my app works fine), but I would like this to work behind a proxy. Is there a setting I can apply to do this, such as setting an http proxy variable? If it helps, I am behind something that looks like user:pass@proxy.company.com:port_id.

@kmiloaguilar
Copy link

@QuantumRich did you got it resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants