Network access is required to run?
See original GitHub issueIssue
Setup:
- Deno Version: 1.6.2 (but also occurs for earlier versions)
- v8 Version: <replace_with_v8_version>
- Typescript Version: 4.1.3
- Opine Version: 1.0.0 (but also occurs for versions 0.24.0, 0.25.0, 0.26.0 & 0.27.0
Please replace this line with a short description of the issue.
Details
Since v0.24.0 Opine seems to required network access to run.
Steps to reproduce
Step 1: Create an app.ts file with the following contents
import { opine } from "https://deno.land/x/opine@1.0.0/mod.ts";
const app = opine();
app.get("/", function(req, res) {
res.send("Hello World");
});
app.listen(3000);
Step 2: Run deno cache app.ts
to cache the dependencies
Step 3: Run `deno run app.ts’ and get the following error
error: Uncaught (in promise) PermissionDenied: network access to "https://deno.land/x/denoflate@1.1/pkg/denoflate_bg.wasm", run again with the --allow-net flag
at processResponse (deno:core/core.js:223:11)
at Object.jsonOpAsync (deno:core/core.js:240:12)
at async fetch (deno:op_crates/fetch/26_fetch.js:1278:29)
at async read (mod.ts:19:15)
at async init (https://deno.land/x/denoflate@1.1/pkg/denoflate.js:217:45)
at async mod.ts:23:1
I would have expected this to run without an error.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
Top Results From Across the Web
If an app would like to connect to devices on your local network
In Settings, go to Privacy > Local Network to see a list of every app that requested access. If you're concerned about why...
Read more >Allowing a Program Access to the Internet - Microsoft Community
Using Windows Firewall, you can allow programs to access the internet. To do so, creating a Firewall Rule is required.
Read more >Computer Basics: Connecting to the Internet - GCF Global
If you have multiple computers at home and want to use all of them to access the Internet, you may want to create...
Read more >How to Manage Local Network Access on an iPhone or iPad
Some apps on your iPhone or iPad may ask for permission to find and access devices on your local network. Here's what you...
Read more >How to configure Local Network Access in iOS or iPadOS
Check Local Network Access on iPhone or iPad · Launch the Settings app. Go to Settings on your iPhone/iPad · From the Settings...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just found https://github.com/deno-library/compress/tree/v0.3.6 which appears to be a typescript implementation of compression libs which we may be able to use instead of denoflate, will spike out this weekend and see if is workable
Asking about this on Discord got the following response