Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Network access is required to run?

See original GitHub issue



  • 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.


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 "";

const app = opine();

app.get("/", function(req, res) {
  res.send("Hello World");


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 "", 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 (
    at async mod.ts:23:1

I would have expected this to run without an error.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

cmortencommented, Jan 15, 2021

Just found 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

mocosocommented, Dec 24, 2020

Asking about this on Discord got the following response

wasm imports can solve it ( but not here yet. for my wasm based module, i just download file locally and load local wasm if its present download it otherwise

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found