Giter Site home page Giter Site logo

Comments (3)

IvanGodinez21 avatar IvanGodinez21 commented on August 17, 2024

I discovered that when you click on 'Open app' it triggers 'web' in heroku, so it will run npm start again, this will happen every time that the user enters the auth link displayed in the console or clicks on 'Open app' (wich are the same) as I understand.
More information in the following links:

https://devcenter.heroku.com/articles/dynos#dyno-configurations
https://devcenter.heroku.com/articles/dyno-types
https://stackoverflow.com/a/38965136

I tried enabling only the 'worker' and disabling 'web' but when I try to authenticate by pressing 'Open app', it displays in the console:

heroku[router]: at=error code=H21 desc="Backend connection refused" method=GET path="/" host=twitch-spotify-request-bot.herokuapp.com request_id=eae730a9-eca3-4096-9b94-0daad5803b61 fwd="177.227.33.136" dyno=web.1 connect=0ms service= status=503 bytes= protocol=https

So you are forced to allow the 'web' to be enabled. If you enable both options, it's still not working.

The solution for this should be one of the following:

  • Get the 'worker' to work (hehe) with express without using the 'web' (Basically, investigate a way to run express in Heroku without using 'web' and just using something like 'worker')
  • Change the host service from Heroku to another (I heard about Vercel, Netlify, DigitalOcean, but I don't know If those have a free plans and easy usage like Heroku)

from twitch-spotify-request-bot.

MarcDonald avatar MarcDonald commented on August 17, 2024

Thanks @IvanGodinez21 for investigating! I have some experience with Vercel and Netlify and both do have free tiers, but the setup process may require more technical knowledge than Heroku.

from twitch-spotify-request-bot.

MarcDonald avatar MarcDonald commented on August 17, 2024

Due to some issues with Heroku and the fact that they removed their free tier, I've removed the recommendations to use it as it was causing confusion. If this changes in the future I will update this ticket.

from twitch-spotify-request-bot.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.