You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question, we are looking to use this module alongside the @octokit/graphql.js.
We work behind a corporate proxy, so we need to be able to pass a proxy to any egress request from within our network.
I see that both this and the @octokit/graphql.js modules use the @octokit/request.js) module to make its requests to the GitHub API.
By taking a look at your code, you seem to be using node-fetch for actually making the HTTP Requests behind the scenes.
Taking a look at node-fetch it does support passing in an agent. When taking a look at your request library, there doesn't seem to be any options, which I would have expected to see here? (maybe?)
We would love to be able to pass in a httpsAgent somewhere?
Something like that? It would be great if we could do this in a single place when looking through the octokit modules, it would be great to have a single experience across the @octokit ecosystem 馃?
Just wanted to put it here and get some of your thoughts on best practice 馃憤
Thanks for all your help.
The text was updated successfully, but these errors were encountered:
What I would suggest you do is to use https://github.com/octokit/core.js where you can pass { request: { agent } } to setup a proxy. The full code would look like this
If you don't want to use @octokit/core, you can create a custom @octokit/request instance and pass that to both, @octokit/graphql (see docs and @octokit/auth-app (via request option)
Hey 馃憢馃徎,
I have a question, we are looking to use this module alongside the @octokit/graphql.js.
We work behind a corporate proxy, so we need to be able to pass a proxy to any egress request from within our network.
I see that both this and the
@octokit/graphql.js
modules use the @octokit/request.js) module to make its requests to the GitHub API.By taking a look at your code, you seem to be using node-fetch for actually making the HTTP Requests behind the scenes.
Taking a look at node-fetch it does support passing in an agent. When taking a look at your request library, there doesn't seem to be any options, which I would have expected to see here? (maybe?)
We would love to be able to pass in a
httpsAgent
somewhere?Something like that? It would be great if we could do this in a single place when looking through the
octokit
modules, it would be great to have a single experience across the@octokit
ecosystem 馃?Just wanted to put it here and get some of your thoughts on best practice 馃憤
Thanks for all your help.
The text was updated successfully, but these errors were encountered: