-
Notifications
You must be signed in to change notification settings - Fork 186
Closed
Labels
type: question or discussionIssue discussing or asking a question about gqlIssue discussing or asking a question about gql
Description
Describe the bug
gql
does not handle proxy usage when using the asyncio API. Other libraries such as httpx support this out of the box by honouring the HTTPS_PROXY / HTTP_PROXY environment variable.
To Reproduce
- deploy a squid proxy.
- set the HTTPS_PROXY variable to that corresponding proxy
- make a graphql request to github
Expected behavior
The request goes through the proxy. We block all outgoing network requests that don't go through the proxy, so this means we get a timeout when making graphql requests.
System info (please complete the following information):
- OS: debian
- Python version: 3.8
- gql version: 3.3.0
- graphql-core version: 3.2.1
ps. Alternatively, this could be addressed by supporting async httpx.
huyz
Metadata
Metadata
Assignees
Labels
type: question or discussionIssue discussing or asking a question about gqlIssue discussing or asking a question about gql