denoland / denoland/deploy_feedback

[Bug]: Unable to use proxy with Deno Deploy due to unstable API of createHttpClient and lack of support for HTTPS_PROXY and HTTP_PROXY environment variables

Open
#591 1 comment 8 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

### Problem description

## Description:

I'm trying to use a proxy with Deno Deploy, but I'm encountering some issues. The `Deno.createHttpClient` API, which could potentially be used to set up a proxy, is currently marked as unstable.

Additionally, Deno Deploy does not seem to respect the `HTTPS_PROXY` and `HTTP_PROXY` environment variables, which are commonly used to configure a proxy.

This is causing difficulties in using Deno Deploy in environments where a proxy is required for outbound HTTP/HTTPS requests.

### Steps to reproduce

1. Set the `HTTPS_PROXY` or `HTTP_PROXY` environment variable to the URL of a proxy server.
2. Deploy a Deno application that makes an outbound fetch HTTP/HTTPS request.
3. Observe that the request does not go through the proxy. (simply fetch an ip api and it will return the server ip isntead of the proxy ip, you can see with ip.smartproxy.com/json that its google cloud isp)

### Expected behavior

## Expected behavior:

Deno Deploy should respect the `HTTPS_PROXY` and `HTTP_PROXY` environment variables and use the specified proxy for outbound HTTP/HTTPS requests.

## Actual behavior:

The `HTTPS_PROXY` and `HTTP_PROXY` environment variables are ignored, and outbound HTTP/HTTPS requests do not go through the proxy.

## Additional information:

This issue is preventing me from using Deno Deploy in my environment, where a proxy is required for outbound HTTP/HTTPS requests. I would appreciate it if this could be addressed.

Thank you.

### Environment

_No response_

### Possible solution

Enable usage of createHttpClient on deno deploy or the use of proxy env variables.

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.