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.

Heroku don't work with tinyhttp

See original GitHub issue

Describe the bug

I write a simple web service using tinyhttp and i decided to deploy on heroku. but guess what, heroku don’t compatible with tinyhttp. when i replaced tinyhttp with express, everything works fine.

To Reproduce

Steps to reproduce the behavior:

  1. write webservice
  2. add Procfile
  3. set web: yarn start
  4. git add -A
  5. git push heroku master

Expected behavior

Working Fin!

Versions

  • node: 14
  • @tinyhttp/app: 0.4.1

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
talentlessguycommented, Sep 27, 2020

My friend helped me to find out the bug. tinyhttp binds to localhost by default, while it must bind to 0.0.0.0

bugfix is to be released soon 😄

2reactions
mhmda-83commented, Sep 28, 2020

@mhmda-83 upgrade your deps, it should be working now

Wow, such a fast fix 😃 I test it and it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Heroku don't work with tinyhttp · Issue #85 - GitHub
Describe the bug I write a simple web service using tinyhttp and i decided to deploy on heroku. but guess what, heroku don't...
Read more >
Troubleshooting Node.js Deploys - Heroku Dev Center
Your Node.js deploy failed - now what? Start with these simple steps to troubleshoot a build issue. Check the buildpack.
Read more >
Deploy node.js app on heroku succeeds but doesn't work
heroku open opens immonow.herokuapp.com however, I tried to change the port to 80 but then it wouldn't even work locally.
Read more >
LogRocket Blog - For Frontend Developers and Web App ...
Building stateful web apps without React. To gain insight into how larger frameworks (e.g., React, Angular, Vue) work, let's look at how to...
Read more >
Deploying a Node.js app on Heroku within Minutes
If it is working you will see the above. We need to add the project to GitHub first. So, let's add .gitignore file...
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