Closed twihno closed 9 months ago
@kt3k do you think this one is still valid? My feeling is that it's probably stale.
I think this is a Deno CLI issue and still valid.
Why does Deno try to connect to https://dl.deno.land/?
The upgrade checker checks https://dl.deno.land/release-latest.txt
to see if there's a new release
https://github.com/denoland/deno/blob/bb4b00df929a84d0302659700b97160f0fdbab78/cli/tools/upgrade.rs#L451
Thanks for the clarification.
@twihno, does this issue still happen when you use Deno.serve()
?
Sorry for the late reply. It seems to be resolved. I don't get the error anymore and Deno behaves as expected (with the system cerstore env-variable set).
The log of the example with the current deno and std version (note: I just copied the example from this issue and removed the explicit std version to get the current one because I was too lazy to look up the correct version. Therefore there is a warning for the implicit std version):
DEBUG RS - deno::args::package_json:151 - No package.json file found
DEBUG RS - deno::cache::cache_db:130 - Opening cache /home/schuthom/.cache/deno/dep_analysis_cache_v1...
DEBUG RS - deno::cache::cache_db:130 - Opening cache /home/schuthom/.cache/deno/node_analysis_cache_v1...
DEBUG RS - deno::js:11 - Deno isolate init with snapshots.
DEBUG RS - deno::worker:156 - main_module file:///home/schuthom/teest/test.ts
DEBUG RS - deno::module_loader:124 - Preparing module load.
DEBUG RS - deno::module_loader:145 - Creating module graph.
DEBUG RS - deno::file_fetcher:550 - FileFetcher::fetch() - specifier: file:///home/schuthom/teest/test.ts
DEBUG RS - deno_runtime::permissions:86 - ⚠️️ Granted read access to "/home/schuthom/teest/test.ts"
DEBUG RS - deno::file_fetcher:550 - FileFetcher::fetch() - specifier: https://deno.land/std/http/server.ts
DEBUG RS - deno_runtime::permissions:86 - ⚠️️ Granted net access to "deno.land"
DEBUG RS - deno::file_fetcher:344 - FileFetcher::fetch_remote() - specifier: https://deno.land/std/http/server.ts
DEBUG RS - deno_runtime::permissions:86 - ⚠️️ Granted net access to "deno.land"
DEBUG RS - deno::file_fetcher:254 - FileFetcher::fetch_cached - specifier: https://deno.land/std/http/server.ts
DEBUG RS - reqwest::connect:429 - starting new connection: https://deno.land/
DEBUG RS - reqwest::async_impl::client:2396 - redirect policy disallowed redirection to 'https://deno.land/std@0.212.0/http/server.ts'
Warning Implicitly using latest version (0.212.0) for https://deno.land/std/http/server.ts
DEBUG RS - deno::http_util:59 - Redirecting to "/std@0.212.0/http/server.ts"...
DEBUG RS - deno::file_fetcher:344 - FileFetcher::fetch_remote() - specifier: https://deno.land/std@0.212.0/http/server.ts
DEBUG RS - deno_runtime::permissions:86 - ⚠️️ Granted net access to "deno.land"
DEBUG RS - deno::file_fetcher:254 - FileFetcher::fetch_cached - specifier: https://deno.land/std@0.212.0/http/server.ts
DEBUG RS - deno::file_fetcher:550 - FileFetcher::fetch() - specifier: https://deno.land/std@0.212.0/async/delay.ts
DEBUG RS - deno_runtime::permissions:86 - ⚠️️ Granted net access to "deno.land"
DEBUG RS - deno::file_fetcher:344 - FileFetcher::fetch_remote() - specifier: https://deno.land/std@0.212.0/async/delay.ts
DEBUG RS - deno_runtime::permissions:86 - ⚠️️ Granted net access to "deno.land"
DEBUG RS - deno::file_fetcher:254 - FileFetcher::fetch_cached - specifier: https://deno.land/std@0.212.0/async/delay.ts
DEBUG RS - deno::npm::managed::resolution:314 - Snapshot already up to date. Skipping pending resolution.
DEBUG RS - deno::module_loader:217 - Prepared module load.
DEBUG RS - deno_runtime::permissions:86 - ⚠️️ Granted net access to "0.0.0.0:8000"
Listening on http://localhost:8000/
DEBUG RS - deno_runtime::worker:587 - received module evaluate Ok(
(),
)
Describe the bug
A corporate proxy with its own HTTPS certificate results in the error/alert
Sending fatal alert BadCertificate
in the command line. The proxy cert is signed by the corporate CA with the root certificate imported into the OS cert store.(Somewhat related to denoland/deno#11491)
Steps to Reproduce
start.sh
test.ts
Output
Expected behavior
No error message
Additional Question Why does Deno try to connect to https://dl.deno.land?
Environment