Node.js app showing favicon.ico path error - node.js

I have deployed a Node.js app to heroku but as I run it for first time, it works good but then some error logs come up which say npm error and favicon.ico error and then the server closes the connection. I am not getting any sort of help from their documentation. Please help me run it!!

Related

Error while deploying Node Express app in Heroku

I've been trying to deploy a node-express app in Heroku. I've created the app in Heroku, and try to open the app link which created at the end of the deployment. But it showing application error.
screenshot of the error I got while running the app address
I think the error should be in the main route code.
Error status when I ran the Heroku logs --tail.
Anyone gone through this earlier, help me to figure it out and resolve this issue.
Thanks in advance.

Logs eventsource failed

I create a nodejs app.
heroku local web works perfect.
However when I pushed it to heroku and open the application, error message pops up
ui error message
When I tried heroku logs --tail, another error shows up on the console
console error.
Please help me fix this, thank you!
I am the author of this post and I figured out where the problem is by executing
heroku run bash and manually restarting the program and soon observed the error in the output.
It was because I omitted installing one dependency, which caused the nodejs program fail to start.
However, the output of heroku logs --tail still needs improving. It does not return anything useful other than a 400 error.

How to check errors log on heroku? (nodejs app)

Where can I check what error my nodejs app is producing?
I dont have that error on my local machine, and heroku web worker only returns to browser:
"Internal Server Error"
How can I find out what is this error about?
You can run heroku logs command or use add-ons like Papertrail to manage your logs.
If you error has an error code you can find more info about it in Heroku Error Codes

Getting error in package.json while uploading to Openshift server

I am getting following error when i am trying to push my application to Openshift server. I have updated only package.json and trying to upload it on server then it showing this error.
So i have written couple of command to find out this error. So i found the following error but i am not getting what should i do now to fix this error.
My package.json is following below. If you think that there is some error in this package.json, please inform me. It is running fine on localhost but i do not know it is not able to find out package.json.
it's possible that the existing running application is not getting stopped correctly. Try using the rhc app stop command to completely stop your application, and then ssh to your gear (rhc ssh) and use the "ps -ef" command to make sure nothing else is running that would be taking up that port.

Heroku - Node.js application deployed successfully, heroku local fails

I have a MEAN stack app which has been successfully deployed to heroku. Everything works great using the heroku hosted version of my application.
For some reason, when I run my app using "heroku local" it fires up and appears to be working correctly but I can't access any of my endpoints.
Postman gives me the following error instantly "Could not get any response". I am also at a loss for where to even begin troubleshooting this problem, even running the application using "node app.js" gives me the same error. This did not happen prior to deploying to heroku!
Some files I have added are 'Procfile'
web: node app.js
Am I missing something here?
Another thing I have added is the MongoLab addon, to isolate and see if this was the issue I created a test endpoint at "http://localhost:8080/api/test" but it doesnt even respond with the simple "message: 'Success!'" json response.

Resources