Posts

Showing posts with the label heroku

Heroku crashes with a jwt error [on hold]

Heroku crashes with a jwt error [on hold] i have created a flask app that uses JWT for authentification. The app crashes on Heroku with the following log details. from jwt import ExpiredSignatureError, InvalidTokenError ImportError: cannot import name 'ExpiredSignatureError' I dont have any such import in my code from jwt import ExpiredSignatureError, InvalidTokenError ImportError: cannot import name 'ExpiredSignatureError' App logs This question appears to be off-topic. The users who voted to close gave this specific reason:

Can't get heroku procfile

Can't get heroku procfile I'm trying to build up a deep-learning-based facebook chatbot (using Python). I'm trying to deploy it on Heroku firstly, but as I'm using the command web: gunicorn echoserver:app the terminal says web: command not found . Howevere, I've installed gunicorn already. web: gunicorn echoserver:app web: command not found gunicorn 2 Answers 2 This is because you are typing web: , which is not a command line interface (CLI) command. web: If you've installed gunicorn , then the command (from the CLI) is gunicorn . Something like, for instance gunicorn gunicorn gunicorn echoserver:app I suppose it's also possible that you have a Windows machine. gunicorn does not work on Windows, so you would need to use something like waitress . With waitress , you would type web: on a Windows machine, so that it would be something like gunicorn waitress waitress...

Getting “Application Error” while deploying my Node.js app using “heroku open”

Getting “Application Error” while deploying my Node.js app using “heroku open” I made a project, specifically, a URL Shortener using Node.js which runs perfectly when run locally on a port. However, while trying to push it via Heroku using heroku open command I got this error: heroku open Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. After checking my logs using command heroku logs , I got heroku logs 2018-06-30T12:12:49.803878+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2018-06-30T12:12:49.803878+00:00 heroku[web.1]: Stopping process with SIGKILL 2018-06-30T12:12:49.863059+00:00 heroku[web.1]: Process exited with status 137 2018-06-30T12:12:49.917775+00:00 heroku[web.1]: State changed from starting to crashed 2018-06-30T12:12:50.752040+00:00 heroku[router]: at=error code=H10 desc="App crashed" ...