question-mark
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.

Koa with http2 cannot get request

See original GitHub issue

I use http2 with koa.

http2.createServer(app.callback()).listen(3000, () => {
  console.info('===========================================');
  console.info('===== Server is running at port: 3000 =====');
  console.info('===========================================');
});

But when I use browser to hit 127.0.0.1:3000. Server didn’t get any request at console. I am not sure it is koa or middleware’s issue. Here is my sample https://github.com/Rukeith/blog-server/tree/http2-demo

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fl0wcommented, Mar 5, 2018

I am going to close this for now.

Feel free to re-open if you still assert Koa to be the issue showcased with a minimal reproducible example.

0reactions
marioavscommented, Feb 11, 2019

There are no browsers known that support unencrypted HTTP/2 http2.createServer(app.callback()) works as documented and can be tested with: const client = http2.connect('http://localhost:3000')

Read more comments on GitHub >

github_iconTop Results From Across the Web

Koa JS - Cannot Send Response after calling an API. Always ...
What it doesn't do is resolve when the result from the HTTPS request is available. await ing it therefore does not do what...
Read more >
oak@v11.1.0 - Deno
This middleware framework is inspired by Koa and middleware router inspired ... In HTTP/2 in many situations you cannot determine if a request...
Read more >
12 Benefits of Camping | Why Camping Is Good for You - KOA
When you're camping, you can't help but engage in physical activity and get your heart rate up. Lack of alarm clocks: When was...
Read more >
Devils Tower / Black Hills KOA Journey
... Hills KOA Journey is located in Devils Tower, Wyoming and offers great camping sites! Click here to find out more information or...
Read more >
Charlotte / Fort Mill KOA Journey
Charlotte / Fort Mill KOA Journey is located in Fort Mill, South Carolina and offers great camping sites! Click here to find out...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found