Skip to content
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

Proxy Option not working #108

Open
gilLionKing opened this issue Oct 8, 2015 · 2 comments
Open

Proxy Option not working #108

gilLionKing opened this issue Oct 8, 2015 · 2 comments

Comments

@gilLionKing
Copy link

hi , i'm passing in the api options the proxy like that
FB.options({
accessToken: 'toekn'
, proxy: 'http://171.245.140.11:3128'
});
im getting back an error _http_client.js:73
throw new TypeError('Request path contains unescaped characters.');
^
TypeError: Request path contains unescaped characters.
at new ClientRequest (_http_client.js:73:11)
at TunnelingAgent.exports.request (http.js:49:10)
at TunnelingAgent.createSocket (C:\Solutions\Main\Investigator\Indexer - Cop
y\Indexer\node_modules\fb\node_modules\request\tunnel.js:116:25)
at TunnelingAgent.createSecureSocket [as createSocket](C:SolutionsMainIn
vestigatorIndexer - CopyIndexernode_modulesfbnode_modulesrequesttunnel.js
:188:41)
at TunnelingAgent.addRequest (C:\Solutions\Main\Investigator\Indexer - Copy
Indexer\node_modules\fb\node_modules\request\tunnel.js:80:8)

u have any idea what could be the probem ? without the proxy option , it's working well

@dantman
Copy link

dantman commented Oct 8, 2015

I don't know much about the proxy option.

My next beta release is going to have support for DEBUG=fb:req which we can also use to at least make sure it's not related to the url.

@dantman
Copy link

dantman commented Oct 9, 2015

Could you try installing fb@^1.0.0-beta2 (or fb@next) and running your test again with the DEBUG=fb:req environment variable set.

The fb:req debug line outputted might give a hint to what is wrong. Alternatively it's also possible that the newer version of request may not have this bug.

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