I have made a project through a course with Brad Traversy called contact keeper. It works fine locally on my machine and I get contact with the database.
Once I push it to Heroku I cant log in or register anymore. I get a 503 error (H10 & H13 errors from heroku) saying service unavailable when trying to hit those endpoints.
I have tried looking on similar threads but it does not work for me. I have added a procfile and checked through my package.json and it looks alright (from what I see).
The full repository can be found here: https://github.com/Dannus90/Contact_Keeper_MERN
const express = require('express');
const connectDB = require('./config/db');
const path = require('path');
const app = express();
// Connect Database
connectDB();
// Init Middleware
app.use(express.json({ extended: false }));
// Define Routes
app.use('/api/users', require('./routes/users'));
app.use('/api/auth', require('./routes/auth'));
app.use('/api/contacts', require('./routes/contacts'));
// Serve static assets in production
if (process.env.NODE_ENV === 'production') {
// Set static folder
app.use(express.static('client/build'));
app.get('*', (req, res) =>
res.sendFile(path.resolve(__dirname, 'client', 'build', 'index.html'))
);
}
const PORT = process.env.PORT || 5000;
app.listen(PORT, () => console.log(`Server started on port ${PORT}`));
In the picture below you can see where it fails. It is in the AuthState file when it tries to hit the endpoints.
The complete error log from heroku can be seen below:
2020-05-17T09:23:20.616623+00:00 heroku[web.1]: State changed from starting to up
2020-05-17T09:23:50.230066+00:00 app[web.1]: connection <monitor> to 52.31.65.44:27017 closed
2020-05-17T09:23:50.240114+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-05-17T09:23:50.240313+00:00 app[web.1]: npm ERR! errno 1
2020-05-17T09:23:50.241253+00:00 app[web.1]: npm ERR! contact-keeper#1.0.0 start: `node server.js`
2020-05-17T09:23:50.241374+00:00 app[web.1]: npm ERR! Exit status 1
2020-05-17T09:23:50.241498+00:00 app[web.1]: npm ERR!
2020-05-17T09:23:50.241622+00:00 app[web.1]: npm ERR! Failed at the contact-keeper#1.0.0 start script.
2020-05-17T09:23:50.241760+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-05-17T09:23:50.249534+00:00 app[web.1]:
2020-05-17T09:23:50.249723+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-05-17T09:23:50.249843+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-05-17T09_23_50_242Z-debug.log
2020-05-17T09:23:50.311445+00:00 heroku[web.1]: State changed from up to crashed
2020-05-17T09:26:49.000000+00:00 app[api]: Build started by user persson.daniel.1990#gmail.com
2020-05-17T09:28:20.734327+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-17T09:28:20.461350+00:00 app[api]: Release v48 created by user persson.daniel.1990#gmail.com
2020-05-17T09:28:20.461350+00:00 app[api]: Deploy 502ce232 by user persson.daniel.1990#gmail.com
2020-05-17T09:28:21.000000+00:00 app[api]: Build succeeded
2020-05-17T09:28:30.543747+00:00 app[web.1]:
2020-05-17T09:28:30.543761+00:00 app[web.1]: > contact-keeper#1.0.0 start /app
2020-05-17T09:28:30.543761+00:00 app[web.1]: > node server.js
2020-05-17T09:28:30.543762+00:00 app[web.1]:
2020-05-17T09:28:31.157953+00:00 app[web.1]: Server started on port 13966
2020-05-17T09:28:32.044290+00:00 heroku[web.1]: State changed from starting to up
2020-05-17T09:28:33.217189+00:00 heroku[router]: at=info method=GET path="/" host=afternoon-earth-34040.herokuapp.com request_id=ed1492f5-d053-4ecf-8a88-8561992f3403 fwd="78.82.2.105" dyno=web.1 connect=0ms service=11ms status=200 bytes=2626 protocol=https
2020-05-17T09:28:33.348570+00:00 heroku[router]: at=info method=GET path="/static/css/main.abec718a.chunk.css" host=afternoon-earth-34040.herokuapp.com request_id=410da44d-797f-4a41-bafe-f130118e8c6d fwd="78.82.2.105" dyno=web.1 connect=0ms service=4ms status=200 bytes=4578 protocol=https
2020-05-17T09:28:33.346039+00:00 heroku[router]: at=info method=GET path="/static/js/main.6e77bd50.chunk.js" host=afternoon-earth-34040.herokuapp.com request_id=018e556e-91d6-4944-bd6e-0c5b74ece68a fwd="78.82.2.105" dyno=web.1 connect=0ms service=4ms status=200 bytes=28978 protocol=https
2020-05-17T09:28:33.474881+00:00 heroku[router]: at=info method=GET path="/static/js/2.9c49eab7.chunk.js" host=afternoon-earth-34040.herokuapp.com request_id=5379490e-fd9b-47c1-b001-15e036784e2d fwd="78.82.2.105" dyno=web.1 connect=0ms service=10ms status=200 bytes=192222 protocol=https
2020-05-17T09:28:33.992494+00:00 heroku[router]: at=info method=GET path="/api/contacts" host=afternoon-earth-34040.herokuapp.com request_id=3684bbba-83b1-4d90-b9f8-d4ba7dedbc60 fwd="78.82.2.105" dyno=web.1 connect=0ms service=2ms status=401 bytes=257 protocol=https
2020-05-17T09:28:33.990977+00:00 heroku[router]: at=info method=GET path="/api/auth" host=afternoon-earth-34040.herokuapp.com request_id=705c0086-3927-4e6f-b2dd-45ac9165e303 fwd="78.82.2.105" dyno=web.1 connect=0ms service=4ms status=401 bytes=257 protocol=https
2020-05-17T09:28:34.365542+00:00 heroku[router]: at=info method=GET path="/manifest.json" host=afternoon-earth-34040.herokuapp.com request_id=1f38b786-2c3d-411e-8aee-6862c40e77d4 fwd="78.82.2.105" dyno=web.1 connect=1ms service=6ms status=200 bytes=787 protocol=https
2020-05-17T09:28:34.483877+00:00 heroku[router]: at=info method=GET path="/logo192.png" host=afternoon-earth-34040.herokuapp.com request_id=65807958-8954-4332-8cab-dc4320e2cac8 fwd="78.82.2.105" dyno=web.1 connect=0ms service=2ms status=200 bytes=5622 protocol=https
2020-05-17T09:28:42.084546+00:00 heroku[router]: at=info method=GET path="/static/js/2.9c49eab7.chunk.js.map" host=afternoon-earth-34040.herokuapp.com request_id=d186f408-b227-4ce3-8f6d-2858c2b6b5a0 fwd="78.82.2.105" dyno=web.1 connect=0ms service=18ms status=200 bytes=624338 protocol=https
2020-05-17T09:28:42.056584+00:00 heroku[router]: at=info method=GET path="/static/css/main.abec718a.chunk.css" host=afternoon-earth-34040.herokuapp.com request_id=4ebde32e-fca4-4968-89d2-e10af56e5ad3 fwd="78.82.2.105" dyno=web.1 connect=0ms service=4ms status=304 bytes=238 protocol=https
2020-05-17T09:28:42.176331+00:00 heroku[router]: at=info method=GET path="/static/js/main.6e77bd50.chunk.js.map" host=afternoon-earth-34040.herokuapp.com request_id=22d537d1-9c6e-445b-985a-78f2319dd192 fwd="78.82.2.105" dyno=web.1 connect=0ms service=4ms status=200 bytes=61221 protocol=https
2020-05-17T09:28:42.289347+00:00 heroku[router]: at=info method=GET path="/static/css/main.abec718a.chunk.css.map" host=afternoon-earth-34040.herokuapp.com request_id=7418f08d-9c43-47e0-b2d3-2f2d23652356 fwd="78.82.2.105" dyno=web.1 connect=0ms service=2ms status=200 bytes=15892 protocol=https
2020-05-17T09:29:01.254923+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=POST path="/api/auth" host=afternoon-earth-34040.herokuapp.com request_id=82f5a82c-e065-4e9e-a284-a82ba86287d2 fwd="78.82.2.105" dyno=web.1 connect=0ms service=15877ms status=503 bytes=0 protocol=https
2020-05-17T09:29:01.362981+00:00 heroku[web.1]: State changed from up to crashed
2020-05-17T09:29:01.235846+00:00 app[web.1]: connection <monitor> to 54.72.107.147:27017 closed
2020-05-17T09:29:01.262738+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-05-17T09:29:01.263049+00:00 app[web.1]: npm ERR! errno 1
2020-05-17T09:29:01.263998+00:00 app[web.1]: npm ERR! contact-keeper#1.0.0 start: `node server.js`
2020-05-17T09:29:01.264159+00:00 app[web.1]: npm ERR! Exit status 1
2020-05-17T09:29:01.264337+00:00 app[web.1]: npm ERR!
2020-05-17T09:29:01.264484+00:00 app[web.1]: npm ERR! Failed at the contact-keeper#1.0.0 start script.
2020-05-17T09:29:01.264618+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-05-17T09:29:01.270789+00:00 app[web.1]:
2020-05-17T09:29:01.270997+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-05-17T09:29:01.271145+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-05-17T09_29_01_265Z-debug.log
2020-05-17T09:29:01.256625+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=POST path="/api/auth" host=afternoon-earth-34040.herokuapp.com request_id=0e0e84a4-257b-43bd-a31d-b97ebaed5a10 fwd="78.82.2.105" dyno=web.1 connect=0ms service=16031ms status=503 bytes=0 protocol=https
2020-05-17T09:29:01.256627+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=POST path="/api/auth" host=afternoon-earth-34040.herokuapp.com request_id=acbb4fdf-bf07-4668-886e-a253a3e0aee3 fwd="78.82.2.105" dyno=web.1 connect=0ms service=15442ms status=503 bytes=0 protocol=https
2020-05-17T09:29:01.257557+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=POST path="/api/auth" host=afternoon-earth-34040.herokuapp.com request_id=1a45a04e-0c1e-47ea-b796-7299db72f732 fwd="78.82.2.105" dyno=web.1 connect=0ms service=21480ms status=503 bytes=0 protocol=https
2020-05-17T09:29:01.257996+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=POST path="/api/auth" host=afternoon-earth-34040.herokuapp.com request_id=2531aa80-5bf8-42e8-b620-ff9f2969ba1f fwd="78.82.2.105" dyno=web.1 connect=0ms service=15579ms status=503 bytes=0 protocol=https
2020-05-17T09:29:04.000000+00:00 app[api]: Build started by user persson.daniel.1990#gmail.com
2020-05-17T09:30:32.857023+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-17T09:30:32.560586+00:00 app[api]: Release v49 created by user persson.daniel.1990#gmail.com
2020-05-17T09:30:32.560586+00:00 app[api]: Deploy aba0d37e by user persson.daniel.1990#gmail.com
2020-05-17T09:30:34.000000+00:00 app[api]: Build succeeded
2020-05-17T09:30:44.786119+00:00 app[web.1]:
2020-05-17T09:30:44.786136+00:00 app[web.1]: > contact-keeper#1.0.0 start /app
2020-05-17T09:30:44.786137+00:00 app[web.1]: > node server.js
2020-05-17T09:30:44.786137+00:00 app[web.1]:
2020-05-17T09:30:45.574040+00:00 app[web.1]: Server started on port 52681
2020-05-17T09:30:46.081535+00:00 heroku[web.1]: State changed from starting to up
2020-05-17T09:31:15.677435+00:00 app[web.1]: connection <monitor> to 52.31.65.44:27017 closed
2020-05-17T09:31:15.698356+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-05-17T09:31:15.698666+00:00 app[web.1]: npm ERR! errno 1
2020-05-17T09:31:15.699733+00:00 app[web.1]: npm ERR! contact-keeper#1.0.0 start: `node server.js`
2020-05-17T09:31:15.699922+00:00 app[web.1]: npm ERR! Exit status 1
2020-05-17T09:31:15.700135+00:00 app[web.1]: npm ERR!
2020-05-17T09:31:15.700312+00:00 app[web.1]: npm ERR! Failed at the contact-keeper#1.0.0 start script.
2020-05-17T09:31:15.700467+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-05-17T09:31:15.723946+00:00 app[web.1]:
2020-05-17T09:31:15.724237+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-05-17T09:31:15.724392+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-05-17T09_31_15_704Z-debug.log
2020-05-17T09:31:15.828237+00:00 heroku[web.1]: State changed from up to crashed
2020-05-17T09:35:10.524783+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-17T09:35:21.345206+00:00 app[web.1]:
2020-05-17T09:35:21.345238+00:00 app[web.1]: > contact-keeper#1.0.0 start /app
2020-05-17T09:35:21.345238+00:00 app[web.1]: > node server.js
2020-05-17T09:35:21.345239+00:00 app[web.1]:
2020-05-17T09:35:22.181653+00:00 app[web.1]: Server started on port 57715
2020-05-17T09:35:22.526258+00:00 heroku[web.1]: State changed from starting to up
2020-05-17T09:35:52.241989+00:00 app[web.1]: connection <monitor> to 54.72.107.147:27017 closed
2020-05-17T09:35:52.255501+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-05-17T09:35:52.256048+00:00 app[web.1]: npm ERR! errno 1
2020-05-17T09:35:52.257707+00:00 app[web.1]: npm ERR! contact-keeper#1.0.0 start: `node server.js`
2020-05-17T09:35:52.258009+00:00 app[web.1]: npm ERR! Exit status 1
2020-05-17T09:35:52.258313+00:00 app[web.1]: npm ERR!
2020-05-17T09:35:52.258505+00:00 app[web.1]: npm ERR! Failed at the contact-keeper#1.0.0 start script.
2020-05-17T09:35:52.258686+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-05-17T09:35:52.266384+00:00 app[web.1]:
2020-05-17T09:35:52.266689+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-05-17T09:35:52.266864+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-05-17T09_35_52_259Z-debug.log
2020-05-17T09:35:52.425747+00:00 heroku[web.1]: State changed from up to crashed
2020-05-17T09:37:40.075229+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=afternoon-earth-34040.herokuapp.com request_id=b86ff65a-3c2f-4609-85ba-a75500f93e3a fwd="78.82.2.105" dyno= connect= service= status=503 bytes= protocol=https
2020-05-17T09:37:40.189972+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=afternoon-earth-34040.herokuapp.com request_id=d5b50b56-a5df-4d19-9c0f-6298c0dea421 fwd="78.82.2.105" dyno= connect= service= status=503 bytes= protocol=https
2020-05-17T09:37:42.254860+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/login" host=afternoon-earth-34040.herokuapp.com request_id=20cdf3b9-5883-4dcd-898a-03eb6ee20dc5 fwd="78.82.2.105" dyno= connect= service= status=503 bytes= protocol=https
2020-05-17T09:37:43.970046+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/login" host=afternoon-earth-34040.herokuapp.com request_id=dc0e7da8-46fa-4da1-bdb6-4814157e43a5 fwd="78.82.2.105" dyno= connect= service= status=503 bytes= protocol=https
2020-05-17T09:37:44.242232+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=afternoon-earth-34040.herokuapp.com request_id=53adb339-25bb-4bca-9b89-638035820973 fwd="78.82.2.105" dyno= connect= service= status=503 bytes= protocol=https
This is the code from my db file:
const mongoose = require("mongoose");
const config = require("config");
const db = config.get("mongoURI");
const connectDB = async () => {
try {
await mongoose.connect(db, {
useNewUrlParser: true,
useCreateIndex: true,
useFindAndModify: false,
useUnifiedTopology: true,
});
console.log("MongoDB Connected");
} catch (err) {
console.error(err.message);
process.exit(1);
}
};
module.exports = connectDB;
This is the database (found in default and production.js):
{
"mongoURI": "mongodb+srv://Daniel123:Daniel123#contactkeeper-rjjr4.mongodb.net/test?retryWrites=true&w=majority",
"jwtSecret": "secret"
}
Solution for me for this problem (incase anyone else get the problem):
I whitelisted 0.0.0.0/0 on mongodb, set environmental variables on heroku and set them as an alternative for the db connect(same with jwtSecret in the config), since the config was ignored when pushing to heroku:
const mongoose = require("mongoose");
const config = require("config");
const db = config.get("mongoURI");
const connectDB = async () => {
try {
await mongoose.connect(db || process.env.mongoURI, {
useNewUrlParser: true,
useCreateIndex: true,
useFindAndModify: false,
useUnifiedTopology: true,
});
console.log("MongoDB Connected");
} catch (err) {
console.error(err.message);
process.exit(1);
}
};
module.exports = connectDB;
Related
I've created a single page app using the PERN stack and have successfully deployed it to Heroku. Now I am trying to switch to https on the backend, and have creaed a selfsigned.crt file and a selfsigned.key file, but I can't figure out this current error.
Here's my db.js
let connectionString = {
connectionString:
process.env.DATABASE_URL,
ssl: true,
};
const pool = new Pool(connectionString);
module.exports = pool;
Here's my server.js
const express = require("express");
const app = express();
const fs = require("fs");
const https = require("https");
const httpsPort = process.env.PORT || 8443;
const privateKey = fs.readFileSync("./sslCertification/selfsigned.key", "utf8");
const certificate = fs.readFileSync("./sslCertification/selfsigned.crt", "utf8");
const credentials = { key: privateKey, cert: certificate };
const priorityStatus = require("./routes/priorityStatus");
const accounts = require("./routes/accounts");
const projects = require("./routes/projects");
const bugs = require("./routes/bugs");
const comments = require("./routes/comments");
app.use(express.json());
app.all('*', function(req, res, next) {
if (req.headers['x-forwarded-proto'] != 'https')
res.redirect('https://' + req.headers.host + req.url)
else
next()
});
// Needed since single page application
if (process.env.NODE_ENV === 'production') {
app.use(express.static('client/build'));
}
app.get('*', (request, response) => {
response.sendFile(path.join(__dirname, 'client/build', 'index.html'));
});
app.use("/api/priority-status", priorityStatus);
app.use("/api/account", accounts);
app.use("/api/project", projects);
app.use("/api/bug", bugs);
app.use("/api/comment", comments);
const httpsServer = https.createServer(credentials, app);
httpsServer.listen(httpsPort);
// Was using this before switching to https
/* app.listen(process.env.PORT || 5000, () => {
console.log("Server has started on port 5000");
}); */
Here's what I get in my Heroku log --tail.
2020-12-16T23:45:25.843470+00:00 app[web.1]: [1] > server#1.0.0 client /app
2020-12-16T23:45:25.843471+00:00 app[web.1]: [1] > npm start --prefix ./client
2020-12-16T23:45:25.843472+00:00 app[web.1]: [1]
2020-12-16T23:45:26.287947+00:00 app[web.1]: [0]
2020-12-16T23:45:26.287959+00:00 app[web.1]: [0] > server#1.0.0 server /app
2020-12-16T23:45:26.287960+00:00 app[web.1]: [0] > npm start server.js
2020-12-16T23:45:26.287960+00:00 app[web.1]: [0]
2020-12-16T23:45:27.261503+00:00 app[web.1]: [1]
2020-12-16T23:45:27.261511+00:00 app[web.1]: [1] > client#0.1.0 start /app/client
2020-12-16T23:45:27.261512+00:00 app[web.1]: [1] > react-scripts start
2020-12-16T23:45:27.261512+00:00 app[web.1]: [1]
2020-12-16T23:45:27.287963+00:00 app[web.1]: [0]
2020-12-16T23:45:27.287965+00:00 app[web.1]: [0] > server#1.0.0 start /app
2020-12-16T23:45:27.287966+00:00 app[web.1]: [0] > node server.js "server.js"
2020-12-16T23:45:27.287966+00:00 app[web.1]: [0]
2020-12-16T23:45:29.329961+00:00 app[web.1]: [0] Server has started on port 5000
2020-12-16T23:45:29.377253+00:00 heroku[web.1]: State changed from starting to up
2020-12-16T23:45:31.082924+00:00 heroku[router]: at=info method=GET path="/" host=my-bug-tracker.herokuapp.com request_id=d77f6dfd-b5e2-4f8c-b5ec-6c8ca90063dd fwd="107.181.184.23" dyno=web.1 connect=1ms service=62ms status=200 bytes=2573 protocol=https
2020-12-16T23:45:31.327977+00:00 heroku[router]: at=info method=GET path="/static/js/main.627d6695.chunk.js" host=my-bug-tracker.herokuapp.com request_id=3e09e810-ba9b-4ffc-80ec-1452b4dc3fde fwd="107.181.184.23" dyno=web.1 connect=0ms service=8ms status=200 bytes=118886 protocol=https
2020-12-16T23:45:31.580398+00:00 heroku[router]: at=info method=GET path="/static/css/2.e6f51e71.chunk.css" host=my-bug-tracker.herokuapp.com request_id=fd127936-041d-4621-8417-4ab61d3be700 fwd="107.181.184.23" dyno=web.1 connect=1ms service=5ms status=200 bytes=30948 protocol=https
2020-12-16T23:45:31.766225+00:00 heroku[router]: at=info method=GET path="/static/css/main.baebc1a0.chunk.css" host=my-bug-tracker.herokuapp.com request_id=0cbed062-cc5a-4b0b-a5b5-9e0c6c126411 fwd="107.181.184.23" dyno=web.1 connect=0ms service=33ms status=200 bytes=51828 protocol=https
2020-12-16T23:45:31.800991+00:00 heroku[router]: at=info method=GET path="/static/js/2.86007984.chunk.js" host=my-bug-tracker.herokuapp.com request_id=4cb8b8f0-7a9f-4d19-b5e7-886956ff367b fwd="107.181.184.23" dyno=web.1 connect=0ms service=17ms status=200 bytes=256970 protocol=https
2020-12-16T23:45:32.395277+00:00 heroku[router]: at=info method=GET path="/static/media/BlueBackground_1920.f1fd53eb.jpg" host=my-bug-tracker.herokuapp.com request_id=fec9221a-2535-4a31-aa23-faae29fd9278 fwd="107.181.184.23" dyno=web.1 connect=0ms service=79ms status=200 bytes=193680 protocol=https
2020-12-16T23:45:32.435799+00:00 heroku[router]: at=info method=GET path="/bug-icon-white-background-thick.ico" host=my-bug-tracker.herokuapp.com request_id=2c3fcb80-9d59-4e2d-82cb-e40e069572fc fwd="107.181.184.23" dyno=web.1 connect=0ms service=11ms status=200 bytes=14451 protocol=https
2020-12-16T23:45:34.651092+00:00 app[web.1]: [1] Something is already running on port 32518.
2020-12-16T23:45:34.713739+00:00 app[web.1]: [1] npm run client exited with code 0
2020-12-16T23:45:38.231748+00:00 heroku[router]: at=info method=POST path="/api/account/login" host=my-bug-tracker.herokuapp.com request_id=a98b5798-90c0-43d5-951e-9eedb3caf308 fwd="107.181.184.23" dyno=web.1 connect=0ms service=365ms status=200 bytes=18030 protocol=https
2020-12-16T23:45:38.468324+00:00 heroku[router]: at=info method=GET path="/static/media/sort-arrows-both-empty.4823f7dd.svg" host=my-bug-tracker.herokuapp.com request_id=5ac2ebe3-eade-4929-ac13-a9c130ee49ba fwd="107.181.184.23" dyno=web.1 connect=0ms service=9ms status=200 bytes=2668 protocol=https
2020-12-16T23:45:38.469210+00:00 heroku[router]: at=info method=GET path="/static/media/sort-arrows-top-filled.d4ef80d2.svg" host=my-bug-tracker.herokuapp.com request_id=86e2dc2d-3cbd-49f3-9bff-d0318bfd88e6 fwd="107.181.184.23" dyno=web.1 connect=0ms service=10ms status=200 bytes=2700 protocol=https
2020-12-16T23:45:38.508359+00:00 heroku[router]: at=info method=GET path="/static/media/fontawesome-webfont.af7ae505.woff2" host=my-bug-tracker.herokuapp.com request_id=1c3618aa-6c2d-4849-9742-40b7cf76c25e fwd="107.181.184.23" dyno=web.1 connect=1ms service=10ms status=200 bytes=77438 protocol=https
2020-12-16T23:46:24.944613+00:00 heroku[router]: at=info method=GET path="/" host=my-bug-tracker.herokuapp.com request_id=0825b13a-7917-43d4-bcd9-c0c96df2dc06 fwd="107.181.184.23" dyno=web.1 connect=0ms service=3ms status=304 bytes=237 protocol=https
2020-12-16T23:46:25.177238+00:00 heroku[router]: at=info method=GET path="/static/css/2.e6f51e71.chunk.css" host=my-bug-tracker.herokuapp.com request_id=24c6a746-e906-49db-83ce-ccbe39a274ab fwd="107.181.184.23" dyno=web.1 connect=0ms service=4ms status=200 bytes=30948 protocol=https
2020-12-16T23:46:25.179901+00:00 heroku[router]: at=info method=GET path="/static/css/main.baebc1a0.chunk.css" host=my-bug-tracker.herokuapp.com request_id=d88baeaf-45ac-44fa-8e36-8b4a513c0e9f fwd="107.181.184.23" dyno=web.1 connect=1ms service=7ms status=200 bytes=51828 protocol=https
2020-12-16T23:46:25.184930+00:00 heroku[router]: at=info method=GET path="/static/js/2.86007984.chunk.js" host=my-bug-tracker.herokuapp.com request_id=23923f21-2b35-4eae-9ec4-a5bb511f7fc9 fwd="107.181.184.23" dyno=web.1 connect=0ms service=2ms status=304 bytes=239 protocol=https
2020-12-16T23:46:25.674846+00:00 heroku[router]: at=info method=GET path="/static/js/main.627d6695.chunk.js" host=my-bug-tracker.herokuapp.com request_id=92de810a-64b1-4723-ade4-f3af20f16914 fwd="107.181.184.23" dyno=web.1 connect=0ms service=2ms status=304 bytes=239 protocol=https
2020-12-16T23:46:25.895205+00:00 heroku[router]: at=info method=GET path="/static/media/BlueBackground_1920.f1fd53eb.jpg" host=my-bug-tracker.herokuapp.com request_id=8120bdf0-664b-42a5-9466-47ff254605e0 fwd="107.181.184.23" dyno=web.1 connect=0ms service=14ms status=200 bytes=193680 protocol=https
2020-12-16T23:46:26.005483+00:00 heroku[router]: at=info method=GET path="/bug-icon-white-background-thick.ico" host=my-bug-tracker.herokuapp.com request_id=6d37a9df-6bad-44c6-bf4c-4871036094b0 fwd="107.181.184.23" dyno=web.1 connect=1ms service=5ms status=200 bytes=14451 protocol=https
2020-12-17T00:17:57.035580+00:00 heroku[web.1]: Idling
2020-12-17T00:17:57.038063+00:00 heroku[web.1]: State changed from up to down
2020-12-17T00:17:58.600226+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2020-12-17T00:17:58.725162+00:00 heroku[web.1]: Process exited with status 143
2020-12-19T00:16:45.000000+00:00 app[api]: Build started by user myemail#outlook.com
2020-12-19T00:18:36.760218+00:00 app[api]: Release v32 created by user myemail#outlook.com
2020-12-19T00:18:36.760218+00:00 app[api]: Deploy a56a8d74 by user myemail#outlook.com
2020-12-19T00:18:37.085799+00:00 heroku[web.1]: State changed from down to starting
2020-12-19T00:18:38.000000+00:00 app[api]: Build succeeded
2020-12-19T00:18:46.854143+00:00 heroku[web.1]: Starting process with command `npm run dev`
2020-12-19T00:18:49.111701+00:00 app[web.1]:
2020-12-19T00:18:49.111720+00:00 app[web.1]: > server#1.0.0 dev /app
2020-12-19T00:18:49.111721+00:00 app[web.1]: > concurrently "npm run server" "npm run client"
2020-12-19T00:18:49.111721+00:00 app[web.1]:
2020-12-19T00:18:50.371711+00:00 app[web.1]: [0]
2020-12-19T00:18:50.371740+00:00 app[web.1]: [0] > server#1.0.0 server /app
2020-12-19T00:18:50.371741+00:00 app[web.1]: [0] > npm start server.js
2020-12-19T00:18:50.371741+00:00 app[web.1]: [0]
2020-12-19T00:18:50.685530+00:00 app[web.1]: [1]
2020-12-19T00:18:50.685542+00:00 app[web.1]: [1] > server#1.0.0 client /app
2020-12-19T00:18:50.685542+00:00 app[web.1]: [1] > npm start --prefix ./client
2020-12-19T00:18:50.685543+00:00 app[web.1]: [1]
2020-12-19T00:18:50.962753+00:00 app[web.1]: [0]
2020-12-19T00:18:50.962763+00:00 app[web.1]: [0] > server#1.0.0 start /app
2020-12-19T00:18:50.962764+00:00 app[web.1]: [0] > node server.js "server.js"
2020-12-19T00:18:50.962764+00:00 app[web.1]: [0]
2020-12-19T00:18:51.591232+00:00 heroku[web.1]: State changed from starting to up
2020-12-19T00:18:52.237451+00:00 app[web.1]: [1]
2020-12-19T00:18:52.237462+00:00 app[web.1]: [1] > client#0.1.0 start /app/client
2020-12-19T00:18:52.237463+00:00 app[web.1]: [1] > react-scripts start
2020-12-19T00:18:52.237464+00:00 app[web.1]: [1]
2020-12-19T00:18:54.475128+00:00 app[web.1]: [1] Something is already running on port 36160.
2020-12-19T00:18:54.500055+00:00 app[web.1]: [1] npm run client exited with code 0
2020-12-19T00:21:30.162248+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=my-bug-tracker.herokuapp.com request_id=d2dde696-e905-4999-b060-8f55e67638f8 fwd="73.133.94.85" dyno=web.1 connect=1ms service=8ms status=503 bytes=0 protocol=https
2020-12-19T00:23:04.490925+00:00 heroku[web.1]: Restarting
2020-12-19T00:23:04.507527+00:00 heroku[web.1]: State changed from up to starting
2020-12-19T00:23:05.356455+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2020-12-19T00:23:05.438828+00:00 heroku[web.1]: Process exited with status 143
2020-12-19T00:23:17.170024+00:00 heroku[web.1]: Starting process with command `npm run dev`
2020-12-19T00:23:20.333801+00:00 app[web.1]:
2020-12-19T00:23:20.333826+00:00 app[web.1]: > server#1.0.0 dev /app
2020-12-19T00:23:20.333827+00:00 app[web.1]: > concurrently "npm run server" "npm run client"
2020-12-19T00:23:20.333827+00:00 app[web.1]:
2020-12-19T00:23:21.436851+00:00 app[web.1]: [0]
2020-12-19T00:23:21.436873+00:00 app[web.1]: [0] > server#1.0.0 server /app
2020-12-19T00:23:21.436873+00:00 app[web.1]: [0] > npm start server.js
2020-12-19T00:23:21.436874+00:00 app[web.1]: [0]
2020-12-19T00:23:21.498752+00:00 app[web.1]: [1]
2020-12-19T00:23:21.498754+00:00 app[web.1]: [1] > server#1.0.0 client /app
2020-12-19T00:23:21.498754+00:00 app[web.1]: [1] > npm start --prefix ./client
2020-12-19T00:23:21.498755+00:00 app[web.1]: [1]
2020-12-19T00:23:22.064333+00:00 app[web.1]: [1]
2020-12-19T00:23:22.064355+00:00 app[web.1]: [1] > client#0.1.0 start /app/client
2020-12-19T00:23:22.064356+00:00 app[web.1]: [1] > react-scripts start
2020-12-19T00:23:22.064356+00:00 app[web.1]: [1]
2020-12-19T00:23:22.116724+00:00 app[web.1]: [0]
2020-12-19T00:23:22.116727+00:00 app[web.1]: [0] > server#1.0.0 start /app
2020-12-19T00:23:22.116729+00:00 app[web.1]: [0] > node server.js "server.js"
2020-12-19T00:23:22.116729+00:00 app[web.1]: [0]
2020-12-19T00:23:23.302719+00:00 heroku[web.1]: State changed from starting to up
2020-12-19T00:23:24.037351+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=my-bug-tracker.herokuapp.com request_id=6c715c5a-4f70-4e16-8a4c-307adb441f0a fwd="73.133.94.85" dyno=web.1 connect=1ms service=5ms status=503 bytes=0 protocol=https
2020-12-19T00:23:24.579638+00:00 app[web.1]: [1] Something is already running on port 9268.
2020-12-19T00:23:24.631826+00:00 app[web.1]: [1] npm run client exited with code 0
I am using open weather api. On my local system I used this request and it worked fine.
"http://api.openweathermap.org/data/2.5/weather?lat="+lattitude+"&lon="+longitude+"&appid="+weatherKey+"&units="+unit"
Then I searched solution for this problem online and modified the request as:
https://cors-anywhere.herokuapp.com/http://api.openweathermap.org/data/2.5/weather?lat="+lattitude+"&lon="+longitude+"&appid="+weatherKey+"&units="+unit
Honestky I dont know why we are using "https://cors-anywhere.herokuapp.com" .I would be glad if somebody explained the meaning.
I am still getting an error.Please help me.Thanks in advance.
herku log
Server started on port 3000
2020-08-10T11:40:06.567155+00:00 heroku[web.1]: State changed from starting to up
2020-08-10T11:40:10.839569+00:00 heroku[router]: at=info method=GET path="/" host=news-with-tea.herokuapp.com request_id=03988840-7db9-47b6-a22d-5aa10d525a59 fwd="49.205.248.228" dyno=web.1 connect=1ms service=653ms status=304 bytes=184 protocol=https
2020-08-10T11:40:11.865181+00:00 heroku[router]: at=info method=GET path="/css/styles.css" host=news-with-tea.herokuapp.com request_id=e4b7fc2c-55b4-41f8-82fe-37eb7f2bb710 fwd="49.205.248.228" dyno=web.1 connect=0ms service=6ms status=200 bytes=2033 protocol=https
2020-08-10T11:40:11.931225+00:00 heroku[router]: at=info method=GET path="/weather.js" host=news-with-tea.herokuapp.com request_id=6c6b0987-9f84-4ea7-b32d-563c0cee6596 fwd="49.205.248.228" dyno=web.1 connect=0ms service=10ms status=200 bytes=3968 protocol=https
2020-08-10T11:40:12.265807+00:00 heroku[router]: at=info method=GET path="/weather.js" host=news-with-tea.herokuapp.com request_id=f08b5be2-1c62-4f69-9193-1e32494490ab fwd="49.205.248.228" dyno=web.1 connect=0ms service=2ms status=304 bytes=237 protocol=https
2020-08-10T11:40:27.640043+00:00 app[web.1]: helllo[object Object]
2020-08-10T11:40:29.742161+00:00 app[web.1]: 17 78
2020-08-10T11:40:30.245240+00:00 app[web.1]: undefined:1
2020-08-10T11:40:30.245258+00:00 app[web.1]: Missing required request header. Must specify one of: origin,x-requested-with
2020-08-10T11:40:30.245258+00:00 app[web.1]: ^
2020-08-10T11:40:30.245258+00:00 app[web.1]:
2020-08-10T11:40:30.245259+00:00 app[web.1]: SyntaxError: Unexpected token M in JSON at position 0
2020-08-10T11:40:30.245260+00:00 app[web.1]: at JSON.parse (<anonymous>)
2020-08-10T11:40:30.245260+00:00 app[web.1]: at IncomingMessage.<anonymous> (/app/app.js:137:29)
2020-08-10T11:40:30.245261+00:00 app[web.1]: at IncomingMessage.emit (events.js:315:20)
2020-08-10T11:40:30.245261+00:00 app[web.1]: at addChunk (_stream_readable.js:295:12)
2020-08-10T11:40:30.245262+00:00 app[web.1]: at readableAddChunk (_stream_readable.js:271:9)
2020-08-10T11:40:30.245262+00:00 app[web.1]: at IncomingMessage.Readable.push (_stream_readable.js:212:10)
2020-08-10T11:40:30.245263+00:00 app[web.1]: at HTTPParser.parserOnBody (_http_common.js:132:24)
2020-08-10T11:40:30.245263+00:00 app[web.1]: at TLSSocket.socketOnData (_http_client.js:469:22)
2020-08-10T11:40:30.245263+00:00 app[web.1]: at TLSSocket.emit (events.js:315:20)
2020-08-10T11:40:30.245264+00:00 app[web.1]: at addChunk (_stream_readable.js:295:12)
2020-08-10T11:40:30.252437+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/weather" host=news-with-tea.herokuapp.com request_id=c9e29b82-7b67-4af0-9746-a118f77c69e7 fwd="49.205.248.228" dyno=web.1 connect=0ms service=511ms status=503 bytes=0 protocol=https
2020-08-10T11:40:30.252876+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=POST path="/weather" host=news-with-tea.herokuapp.com request_id=a54e7548-a500-410a-8817-31e38dc20a2b fwd="49.205.248.228" dyno=web.1 connect=0ms service=2629ms status=503 bytes=0 protocol=https
2020-08-10T11:40:30.257162+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-08-10T11:40:30.257415+00:00 app[web.1]: npm ERR! errno 1
2020-08-10T11:40:30.259890+00:00 app[web.1]: npm ERR! ejs-challenge#1.0.0 start: `node app.js`
2020-08-10T11:40:30.260001+00:00 app[web.1]: npm ERR! Exit status 1
2020-08-10T11:40:30.260127+00:00 app[web.1]: npm ERR!
2020-08-10T11:40:30.260237+00:00 app[web.1]: npm ERR! Failed at the ejs-challenge#1.0.0 start script.
2020-08-10T11:40:30.260419+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-08-10T11:40:30.271263+00:00 app[web.1]:
2020-08-10T11:40:30.271644+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-08-10T11:40:30.271681+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-08-10T11_40_30_261Z-debug.log
2020-08-10T11:40:30.361346+00:00 heroku[web.1]: Process exited with status 1
2020-08-10T11:40:30.404906+00:00 heroku[web.1]: State changed from up to crashed
2020-08-10T11:45:24.731721+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=news-with-tea.herokuapp.com request_id=0b2f6496-cba4-40ea-94b1-d4de70aab61a fwd="49.205.248.228" dyno= connect= service= status=503 bytes= protocol=https
2020-08-10T11:45:24.969535+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=news-with-tea.herokuapp.com request_id=5f1db2b1-b242-4c8c-9541-4cf19dd486ed fwd="49.205.248.228" dyno= connect= service= status=503 bytes= protocol=https
2020-08-10T11:45:29.819254+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=news-with-tea.herokuapp.com request_id=3a5fed80-b456-452e-86bc-b47dd644f2b6 fwd="49.205.248.228" dyno= connect= service= status=503 bytes= protocol=https
2020-08-10T11:48:09.750615+00:00 heroku[web.1]: State changed from crashed to starting
2020-08-10T11:48:12.239984+00:00 heroku[web.1]: Starting process with command `npm start`
2020-08-10T11:48:14.253874+00:00 app[web.1]:
2020-08-10T11:48:14.253897+00:00 app[web.1]: > ejs-challenge#1.0.0 start /app
2020-08-10T11:48:14.253898+00:00 app[web.1]: > node app.js
2020-08-10T11:48:14.253898+00:00 app[web.1]:
2020-08-10T11:48:14.441205+00:00 app[web.1]: Server started on port 3000
2020-08-10T11:48:14.541655+00:00 heroku[web.1]: State changed from starting to up
app.get('/weather',function(req,res){
const unit="metric";
const url="https://cors-anywhere.herokuapp.com/http://api.openweathermap.org/data/2.5/weather?lat="+lattitude+"&lon="+longitude+"&appid="+weatherKey+"&units="+unit;
https.get(url,function(response){
response.on("data",function(data){
// convert data into JSON object
const weatherData= JSON.parse(data);
console.log(weatherData);
const id=weatherData.weather[0].id;
res.render('weather',{weatherData:weatherData,id:id});
})
})
});
You don't need to use "https://cors-anywhere.herokuapp.com/", the API doesn't differentiate between your local request or a request coming from an heroku server.
The app successfully deploys but when I try to open the app, I get the following error:
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. You can do this from the Heroku CLI with the command
heroku logs --tail
I ran -heroku logs --tail and I get the following:
deons-mbp:shrinkURL deonchoi$ heroku logs --tail
2019-12-13T02:59:25.356685+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2019-12-13T02:59:25.356952+00:00 app[web.1]: npm ERR! errno 1
2019-12-13T02:59:25.357905+00:00 app[web.1]: npm ERR! backend#1.0.0 start: `node server.js`
2019-12-13T02:59:25.358057+00:00 app[web.1]: npm ERR! Exit status 1
2019-12-13T02:59:25.358220+00:00 app[web.1]: npm ERR!
2019-12-13T02:59:25.358348+00:00 app[web.1]: npm ERR! Failed at the backend#1.0.0 start script.
2019-12-13T02:59:25.358480+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-12-13T02:59:25.362742+00:00 app[web.1]:
2019-12-13T02:59:25.362837+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2019-12-13T02:59:25.362931+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2019-12-13T02_59_25_359Z-debug.log
2019-12-13T02:59:25.446611+00:00 heroku[web.1]: State changed from starting to crashed
2019-12-13T02:59:25.422394+00:00 heroku[web.1]: Process exited with status 1
2019-12-13T03:00:38.195196+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=shrinkurlapp.herokuapp.com request_id=99378587-a922-4ad8-8445-aca15eba268a fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:00:38.710170+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=shrinkurlapp.herokuapp.com request_id=ba6a84fe-9a4b-433d-a00d-1a6231e0317c fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:00:49.612623+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=shrinkurlapp.herokuapp.com request_id=7fb228bc-9e62-4526-a51e-feff9631e266 fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:00:50.201204+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=shrinkurlapp.herokuapp.com request_id=ada57278-8d33-4569-b3e3-bad6b136a234 fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:03:11.014926+00:00 heroku[web.1]: State changed from crashed to starting
2019-12-13T03:03:13.149581+00:00 heroku[web.1]: Starting process with command `npm start`
2019-12-13T03:03:15.545496+00:00 app[web.1]:
2019-12-13T03:03:15.545520+00:00 app[web.1]: > backend#1.0.0 start /app
2019-12-13T03:03:15.545522+00:00 app[web.1]: > node server.js
2019-12-13T03:03:15.545524+00:00 app[web.1]:
2019-12-13T03:03:16.082886+00:00 app[web.1]:
2019-12-13T03:03:16.082936+00:00 app[web.1]: /app/node_modules/mongoose/lib/connection.js:541
2019-12-13T03:03:16.082939+00:00 app[web.1]: throw new MongooseError('The `uri` parameter to `openUri()` must be a ' +
2019-12-13T03:03:16.082942+00:00 app[web.1]: ^
2019-12-13T03:03:16.086177+00:00 app[web.1]: Error [MongooseError]: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
2019-12-13T03:03:16.086180+00:00 app[web.1]: at new MongooseError (/app/node_modules/mongoose/lib/error/mongooseError.js:10:11)
2019-12-13T03:03:16.086183+00:00 app[web.1]: at NativeConnection.Connection.openUri (/app/node_modules/mongoose/lib/connection.js:541:11)
2019-12-13T03:03:16.086185+00:00 app[web.1]: at Mongoose.connect (/app/node_modules/mongoose/lib/index.js:328:15)
2019-12-13T03:03:16.086187+00:00 app[web.1]: at Object.<anonymous> (/app/server.js:16:10)
2019-12-13T03:03:16.086189+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:959:30)
2019-12-13T03:03:16.086191+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
2019-12-13T03:03:16.086193+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:815:32)
2019-12-13T03:03:16.086195+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:727:14)
2019-12-13T03:03:16.086197+00:00 app[web.1]: at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
2019-12-13T03:03:16.086200+00:00 app[web.1]: at internal/main/run_main_module.js:17:11 {
2019-12-13T03:03:16.086203+00:00 app[web.1]: message: 'The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.',
2019-12-13T03:03:16.086205+00:00 app[web.1]: name: 'MongooseError'
2019-12-13T03:03:16.086207+00:00 app[web.1]: }
2019-12-13T03:03:16.092626+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2019-12-13T03:03:16.092996+00:00 app[web.1]: npm ERR! errno 1
2019-12-13T03:03:16.094046+00:00 app[web.1]: npm ERR! backend#1.0.0 start: `node server.js`
2019-12-13T03:03:16.094306+00:00 app[web.1]: npm ERR! Exit status 1
2019-12-13T03:03:16.094539+00:00 app[web.1]: npm ERR!
2019-12-13T03:03:16.094740+00:00 app[web.1]: npm ERR! Failed at the backend#1.0.0 start script.
2019-12-13T03:03:16.094919+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-12-13T03:03:16.104750+00:00 app[web.1]:
2019-12-13T03:03:16.105020+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2019-12-13T03:03:16.105275+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2019-12-13T03_03_16_095Z-debug.log
2019-12-13T03:03:16.178860+00:00 heroku[web.1]: State changed from starting to crashed
2019-12-13T03:03:16.164865+00:00 heroku[web.1]: Process exited with status 1
2019-12-13T03:03:24.145385+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=shrinkurlapp.herokuapp.com request_id=ca564a1c-156c-484a-9354-ce243b3b1ed5 fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:03:24.586560+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=shrinkurlapp.herokuapp.com request_id=bb81ead2-cd04-462f-9ab9-64b84d9238bb fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:08:40.000000+00:00 app[api]: Build started by user deon.choi#gmail.com
2019-12-13T03:08:55.468949+00:00 app[api]: Deploy 67508aba by user deon.choi#gmail.com
2019-12-13T03:08:55.468949+00:00 app[api]: Release v4 created by user deon.choi#gmail.com
2019-12-13T03:08:55.741086+00:00 heroku[web.1]: State changed from crashed to starting
2019-12-13T03:08:56.000000+00:00 app[api]: Build succeeded
2019-12-13T03:08:57.971434+00:00 heroku[web.1]: Starting process with command `npm start`
2019-12-13T03:08:59.915432+00:00 app[web.1]:
2019-12-13T03:08:59.915464+00:00 app[web.1]: > backend#1.0.0 start /app
2019-12-13T03:08:59.915467+00:00 app[web.1]: > node server.js
2019-12-13T03:08:59.915470+00:00 app[web.1]:
2019-12-13T03:09:00.319828+00:00 app[web.1]:
2019-12-13T03:09:00.319851+00:00 app[web.1]: /app/node_modules/mongoose/lib/connection.js:541
2019-12-13T03:09:00.319854+00:00 app[web.1]: throw new MongooseError('The `uri` parameter to `openUri()` must be a ' +
2019-12-13T03:09:00.319857+00:00 app[web.1]: ^
2019-12-13T03:09:00.322625+00:00 app[web.1]: Error [MongooseError]: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
2019-12-13T03:09:00.322629+00:00 app[web.1]: at new MongooseError (/app/node_modules/mongoose/lib/error/mongooseError.js:10:11)
2019-12-13T03:09:00.322632+00:00 app[web.1]: at NativeConnection.Connection.openUri (/app/node_modules/mongoose/lib/connection.js:541:11)
2019-12-13T03:09:00.322634+00:00 app[web.1]: at Mongoose.connect (/app/node_modules/mongoose/lib/index.js:328:15)
2019-12-13T03:09:00.322636+00:00 app[web.1]: at Object.<anonymous> (/app/server.js:18:10)
2019-12-13T03:09:00.322639+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:959:30)
2019-12-13T03:09:00.322641+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
2019-12-13T03:09:00.322644+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:815:32)
2019-12-13T03:09:00.322646+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:727:14)
2019-12-13T03:09:00.322648+00:00 app[web.1]: at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
2019-12-13T03:09:00.322651+00:00 app[web.1]: at internal/main/run_main_module.js:17:11 {
2019-12-13T03:09:00.322654+00:00 app[web.1]: message: 'The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.',
2019-12-13T03:09:00.322657+00:00 app[web.1]: name: 'MongooseError'
2019-12-13T03:09:00.322660+00:00 app[web.1]: }
2019-12-13T03:09:00.331200+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2019-12-13T03:09:00.331487+00:00 app[web.1]: npm ERR! errno 1
2019-12-13T03:09:00.333012+00:00 app[web.1]: npm ERR! backend#1.0.0 start: `node server.js`
2019-12-13T03:09:00.333312+00:00 app[web.1]: npm ERR! Exit status 1
2019-12-13T03:09:00.333487+00:00 app[web.1]: npm ERR!
2019-12-13T03:09:00.333633+00:00 app[web.1]: npm ERR! Failed at the backend#1.0.0 start script.
2019-12-13T03:09:00.333752+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-12-13T03:09:00.341621+00:00 app[web.1]:
2019-12-13T03:09:00.341770+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2019-12-13T03:09:00.341887+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2019-12-13T03_09_00_334Z-debug.log
2019-12-13T03:09:00.424560+00:00 heroku[web.1]: State changed from starting to crashed
2019-12-13T03:09:00.403174+00:00 heroku[web.1]: Process exited with status 1
2019-12-13T03:09:01.483310+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=shrinkurlapp.herokuapp.com request_id=79b75979-00fa-4994-a5d1-4f73c5841172 fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:09:02.191776+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=shrinkurlapp.herokuapp.com request_id=93cf4327-3365-4174-a2df-7545952b00a6 fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:09:03.076316+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=shrinkurlapp.herokuapp.com request_id=a2492372-c679-4144-acd1-7956692ad1e0 fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:09:03.469741+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=shrinkurlapp.herokuapp.com request_id=d14e6638-96d5-4f19-8701-03ab766969fc fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:09:47.050280+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=shrinkurlapp.herokuapp.com request_id=287c82b4-b3a6-42cc-81c5-ed97f310f7d3 fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
2019-12-13T03:09:47.349496+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=shrinkurlapp.herokuapp.com request_id=b1ced555-16fd-4255-92be-486d0917aff1 fwd="98.210.22.60" dyno= connect= service= status=503 bytes= protocol=https
I thought the issue was with my mongoose.connect() statement but it seems as if that is not the case.
Here is my server.js express file:
const express = require('express');
const cors = require('cors');
const mongoose = require('mongoose');
const cookieParser = require('cookie-parser');
const path = require('path');
require('dotenv').config();
const app = express();
const port = process.env.PORT || 3000;
app.use(cors());
app.use(express.json());
app.use(cookieParser());
const dbURI = process.env.DB_CONNECTION;
mongoose.connect(dbURI, {useNewUrlParser: true, useUnifiedTopology: true});
const connection = mongoose.connection;
connection.once('open', () => {
console.log('MongoDB database connection established successfully');
});
const urlsRouter = require('./routes/urls');
const redirectRouter = require('./routes/index');
const authRoute = require('./routes/auth');
app.use('/api/urls', urlsRouter);
app.use('/api/user', authRoute);
app.use('/api', redirectRouter);
app.use(express.static(path.join(__dirname, 'build')));
app.get('*', (req, res) => {
res.sendFile(path.resolve(__dirname, 'build', 'index.html'));
});
app.listen(port, () => {
console.log(`Server is running on port ${port}`)
});
refer the following to set environment variable to be used:
https://devcenter.heroku.com/articles/config-vars
The env variable that requires to be set is : DB_CONNECTION
My app has always been working well, but suddenly it started crashing when I tried pushing to heroku.
Here are the logs:
2019-07-29T10:15:28.986142+00:00 app[web.1]: npm ERR!
2019-07-29T10:15:28.990123+00:00 app[web.1]: npm ERR! Failed at the jobdirecto#1.0.0 start script.
2019-07-29T10:15:28.990128+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-07-29T10:15:29.002123+00:00 app[web.1]:
2019-07-29T10:15:29.002127+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2019-07-29T10:15:29.002129+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2019-07-29T10_15_28_987Z-debug.log
2019-07-29T10:15:29.097390+00:00 heroku[web.1]: State changed from starting to crashed
2019-07-29T10:15:29.077730+00:00 heroku[web.1]: Process exited with status 1
2019-07-29T14:10:35.913876+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=vast-eyrie-16248.herokuapp.com request_id=8690ecb0-5c93-41f1-b861-1e2ecc194863 fwd="87.191.57.50" dyno= connect= service= status=503 bytes= protocol=https
2019-07-29T14:10:36.826030+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=vast-eyrie-16248.herokuapp.com request_id=df653f75-9e1f-46ab-a5ed-e867a8c95687 fwd="87.191.57.50" dyno= connect= service= status=503 bytes= protocol=https
Here is the node configuration:
if (process.env.NODE_ENV != "production") {
app.use(
"/bundle.js",
require("http-proxy-middleware")({
target: "http://localhost:8081/"
})
);
} else {
app.use("/bundle.js", (req, res) => res.sendFile(`${__dirname}/bundle.js`));
}
app.listen(process.env.PORT || 8080);
Please help me as I've been days trying to solve this and I still can't figure out a solution.
I have seen very similar posts, that however did not help me to find a solution to my problems.
can any one please help why i am getting this error on heroku and hope to rectify it??
here is full logs for heroku
2015-12-26T16:21:43.901904+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2015-12-26T16:21:43.902144+00:00 app[web.1]: npm ERR! exp2014#0.0.0 start: `node
./bin/www`
2015-12-26T16:21:43.902363+00:00 app[web.1]: npm ERR! Exit status 1
2015-12-26T16:21:43.902631+00:00 app[web.1]: npm ERR!
2015-12-26T16:21:43.902856+00:00 app[web.1]: npm ERR! Failed at the exp2014#0.0.
0 start script 'node ./bin/www'.
2015-12-26T16:21:43.903083+00:00 app[web.1]: npm ERR! Make sure you have the lat
est version of node.js and npm installed.
2015-12-26T16:21:43.903306+00:00 app[web.1]: npm ERR! If you do, this is most li
kely a problem with the exp2014 package,
2015-12-26T16:21:43.903518+00:00 app[web.1]: npm ERR! not with npm itself.
2015-12-26T16:21:43.873454+00:00 app[web.1]:
2015-12-26T16:21:43.903748+00:00 app[web.1]: npm ERR! Tell the author that this
fails on your system:
2015-12-26T16:21:43.903956+00:00 app[web.1]: npm ERR! node ./bin/www
2015-12-26T16:21:43.873459+00:00 app[web.1]: /app/node_modules/mongojs/node_modu
les/mongodb/lib/server.js:236
2015-12-26T16:21:43.873460+00:00 app[web.1]: process.nextTick(function()
{ throw err; })
2015-12-26T16:21:43.904170+00:00 app[web.1]: npm ERR! You can get their info via
:
2015-12-26T16:21:43.873461+00:00 app[web.1]:
^
2015-12-26T16:21:43.904382+00:00 app[web.1]: npm ERR! npm owner ls exp2014
2015-12-26T16:21:43.873466+00:00 app[web.1]: at Object.exports._errnoExcepti
on (util.js:856:11)
2015-12-26T16:21:43.873465+00:00 app[web.1]: Error: connect ECONNREFUSED 127.0.0
.1:27017
2015-12-26T16:21:43.904614+00:00 app[web.1]: npm ERR! There is likely additional
logging output above.
2015-12-26T16:21:43.873466+00:00 app[web.1]: at exports._exceptionWithHostPo
rt (util.js:879:20)
2015-12-26T16:21:43.873468+00:00 app[web.1]: at TCPConnectWrap.afterConnect
[as oncomplete] (net.js:1063:14)
2015-12-26T16:21:43.908441+00:00 app[web.1]:
2015-12-26T16:21:43.892982+00:00 app[web.1]:
2015-12-26T16:21:43.908760+00:00 app[web.1]: npm ERR! Please include the followi
ng file with any support request:
2015-12-26T16:21:43.908960+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2015-12-26T16:21:44.851147+00:00 heroku[web.1]: Process exited with status 1
2015-12-26T16:21:43.881393+00:00 heroku[router]: at=error code=H13 desc="Connect
ion closed without response" method=GET path="/userList" host=shrouded-shore-864
0.herokuapp.com request_id=ec301344-6363-4952-84c8-6c61ff07ae95 fwd="182.93.90.5
1" dyno=web.1 connect=1ms service=54ms status=503 bytes=0
2015-12-26T16:21:45.967001+00:00 heroku[web.1]: Starting process with command `n
pm start`
2015-12-26T16:21:48.569954+00:00 app[web.1]:
2015-12-26T16:21:48.570008+00:00 app[web.1]: > exp2014#0.0.0 start /app
2015-12-26T16:21:48.570010+00:00 app[web.1]: > node ./bin/www
2015-12-26T16:21:48.570010+00:00 app[web.1]:
2015-12-26T16:21:49.077984+00:00 app[web.1]: Express server is running at 17445
2015-12-26T16:21:49.591851+00:00 heroku[web.1]: State changed from starting to u
p
2015-12-26T16:21:51.965557+00:00 heroku[router]: at=info method=GET path="/" hos
t=shrouded-shore-8640.herokuapp.com request_id=f7cb65ec-626c-42b0-ad17-47e86df64
902 fwd="182.93.90.51" dyno=web.1 connect=5000ms service=34ms status=304 bytes=2
37
2015-12-26T16:21:51.941923+00:00 app[web.1]: GET / 304 6.929 ms - -
2015-12-26T16:21:52.433960+00:00 heroku[router]: at=info method=GET path="/publi
c/css/grid12.css" host=shrouded-shore-8640.herokuapp.com request_id=00e8dd9f-ed5
8-485c-bc4d-ec06d4a9c339 fwd="182.93.90.51" dyno=web.1 connect=2ms service=18ms
status=200 bytes=15580
2015-12-26T16:21:52.476019+00:00 heroku[router]: at=info method=GET path="/publi
c/js/libs/angular.min.js" host=shrouded-shore-8640.herokuapp.com request_id=800a
5064-a116-46a0-b423-ac75b8a5ad75 fwd="182.93.90.51" dyno=web.1 connect=2ms servi
ce=3ms status=304 bytes=239
2015-12-26T16:21:52.437724+00:00 heroku[router]: at=info method=GET path="/publi
c/css/text.css" host=shrouded-shore-8640.herokuapp.com request_id=dc701bcc-436c-
474f-970f-fe89012aa88b fwd="182.93.90.51" dyno=web.1 connect=2ms service=9ms sta
tus=200 bytes=1351
2015-12-26T16:21:52.438400+00:00 heroku[router]: at=info method=GET path="/publi
c/css/gallerycss-csstable-min.css" host=shrouded-shore-8640.herokuapp.com reques
t_id=e1b276c7-cad5-497b-843b-449306c47dee fwd="182.93.90.51" dyno=web.1 connect=
2ms service=13ms status=200 bytes=1284
2015-12-26T16:21:52.442105+00:00 heroku[router]: at=info method=GET path="/publi
c/css/ionic.min.css" host=shrouded-shore-8640.herokuapp.com request_id=71dbc93e-
6e98-478a-a5b3-881799bcffa2 fwd="182.93.90.51" dyno=web.1 connect=2ms service=4m
s status=304 bytes=239
2015-12-26T16:21:52.435661+00:00 app[web.1]: GET /public/css/gallerycss-csstable
-min.css 200 5.749 ms - 997
2015-12-26T16:21:52.439825+00:00 app[web.1]: GET /public/css/ionic.min.css 304 1
.024 ms - -
2015-12-26T16:21:52.426003+00:00 app[web.1]: GET /public/css/grid12.css 200 8.21
8 ms - 15290
2015-12-26T16:21:52.436386+00:00 app[web.1]: GET /public/css/text.css 200 5.346
ms - 1063
2015-12-26T16:21:52.450517+00:00 app[web.1]: GET /public/js/libs/angular.min.js
304 0.537 ms - -
2015-12-26T16:21:52.915044+00:00 heroku[router]: at=info method=GET path="/publi
c/js/app.js" host=shrouded-shore-8640.herokuapp.com request_id=4c97b7a8-cec2-49f
6-a498-5acc081e9efe fwd="182.93.90.51" dyno=web.1 connect=2ms service=18ms statu
s=200 bytes=902
2015-12-26T16:21:52.895728+00:00 app[web.1]: GET /public/js/app.js 200 1.337 ms
- 616
2015-12-26T16:21:53.551615+00:00 heroku[router]: at=error code=H13 desc="Connect
ion closed without response" method=GET path="/userList" host=shrouded-shore-864
0.herokuapp.com request_id=b78f628c-34c2-4419-83f7-30b00235f42d fwd="182.93.90.5
1" dyno=web.1 connect=2ms service=39ms status=503 bytes=0
2015-12-26T16:21:53.540393+00:00 app[web.1]:
2015-12-26T16:21:53.540403+00:00 app[web.1]: /app/node_modules/mongojs/node_modu
les/mongodb/lib/server.js:236
2015-12-26T16:21:53.540405+00:00 app[web.1]: process.nextTick(function()
{ throw err; })
2015-12-26T16:21:53.540406+00:00 app[web.1]:
^
2015-12-26T16:21:53.540412+00:00 app[web.1]: Error: connect ECONNREFUSED 127.0.0
.1:27017
2015-12-26T16:21:53.540412+00:00 app[web.1]: at Object.exports._errnoExcepti
on (util.js:856:11)
2015-12-26T16:21:53.540414+00:00 app[web.1]: at TCPConnectWrap.afterConnect
[as oncomplete] (net.js:1063:14)
2015-12-26T16:21:53.540413+00:00 app[web.1]: at exports._exceptionWithHostPo
rt (util.js:879:20)
2015-12-26T16:21:53.560253+00:00 app[web.1]: npm ERR! Linux 3.13.0-71-generic
2015-12-26T16:21:53.562639+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2015-12-26T16:21:53.555441+00:00 app[web.1]:
2015-12-26T16:21:53.560801+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bi
n/node" "/app/.heroku/node/bin/npm" "start"
2015-12-26T16:21:53.561174+00:00 app[web.1]: npm ERR! node v5.1.1
2015-12-26T16:21:53.562127+00:00 app[web.1]: npm ERR! npm v3.3.12
2015-12-26T16:21:53.562977+00:00 app[web.1]: npm ERR! exp2014#0.0.0 start: `node
./bin/www`
2015-12-26T16:21:53.563279+00:00 app[web.1]: npm ERR! Exit status 1
2015-12-26T16:21:53.563594+00:00 app[web.1]: npm ERR!
2015-12-26T16:21:53.563839+00:00 app[web.1]: npm ERR! Failed at the exp2014#0.0.
0 start script 'node ./bin/www'.
2015-12-26T16:21:53.564155+00:00 app[web.1]: npm ERR! Make sure you have the lat
est version of node.js and npm installed.
2015-12-26T16:21:53.564392+00:00 app[web.1]: npm ERR! If you do, this is most li
kely a problem with the exp2014 package,
2015-12-26T16:21:53.564615+00:00 app[web.1]: npm ERR! not with npm itself.
2015-12-26T16:21:53.565077+00:00 app[web.1]: npm ERR! node ./bin/www
2015-12-26T16:21:53.564863+00:00 app[web.1]: npm ERR! Tell the author that this
fails on your system:
2015-12-26T16:21:53.565397+00:00 app[web.1]: npm ERR! You can get their info via
:
2015-12-26T16:21:53.565595+00:00 app[web.1]: npm ERR! npm owner ls exp2014
2015-12-26T16:21:53.565807+00:00 app[web.1]: npm ERR! There is likely additional
logging output above.
2015-12-26T16:21:53.570509+00:00 app[web.1]: npm ERR! Please include the followi
ng file with any support request:
2015-12-26T16:21:53.570244+00:00 app[web.1]:
2015-12-26T16:21:53.570664+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2015-12-26T16:21:54.276984+00:00 heroku[web.1]: State changed from up to crashed
2015-12-26T16:21:54.254278+00:00 heroku[web.1]: Process exited with status 1
2015-12-26T16:21:55.767214+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=shrouded-shore-8640.herokuapp.com request_id=51a4
6763-03db-4a36-8ac3-dd39c308c4e9 fwd="182.93.90.51" dyno= connect= service= stat
us=503 bytes=
2015-12-26T16:21:44.867263+00:00 heroku[web.1]: State changed from up to crashed
2015-12-26T16:21:44.868220+00:00 heroku[web.1]: State changed from crashed to st
arting
2015-12-26T16:22:31.800808+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/userList" host=shrouded-shore-8640.herokuapp.com request
_id=6e198f08-2bc0-42f2-99b1-279318b0d30f fwd="182.93.90.51" dyno= connect= servi
ce= status=503 bytes=
2015-12-26T16:22:31.812528+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=POST path="/userList" host=shrouded-shore-8640.herokuapp.com reques
t_id=583d5d1b-efdc-40bd-8b28-990db58a7720 fwd="182.93.90.51" dyno= connect= serv
ice= status=503 bytes=
2015-12-26T16:22:32.494105+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=POST path="/userList" host=shrouded-shore-8640.herokuapp.com reques
t_id=1d4915bc-42c3-4a59-aa64-df3967f21ae5 fwd="182.93.90.51" dyno= connect= serv
ice= status=503 bytes=
2015-12-26T16:22:33.481676+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/userList" host=shrouded-shore-8640.herokuapp.com request
_id=4740ebf2-5b3a-403c-94a8-564ac23753a8 fwd="182.93.90.51" dyno= connect= servi
ce= status=503 bytes=
2015-12-26T16:22:33.404966+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=POST path="/userList" host=shrouded-shore-8640.herokuapp.com reques
t_id=839286d4-4e1a-49e8-b647-2b3d0e636ffc fwd="182.93.90.51" dyno= connect= serv
ice= status=503 bytes=
2015-12-26T16:22:34.196401+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/userList" host=shrouded-shore-8640.herokuapp.com request
_id=61168a33-4ada-4af8-9e70-6f63f51dcda9 fwd="182.93.90.51" dyno= connect= servi
ce= status=503 bytes=
2015-12-26T16:22:37.622802+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=POST path="/userList" host=shrouded-shore-8640.herokuapp.com reques
t_id=e4141aea-de6b-4b91-9b8a-419f2efab392 fwd="182.93.90.51" dyno= connect= serv
ice= status=503 bytes=
2015-12-26T16:22:38.806705+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/userList" host=shrouded-shore-8640.herokuapp.com request
_id=e3fd097d-e723-4961-8349-4309e2c98a98 fwd="182.93.90.51" dyno= connect= servi
ce= status=503 bytes=
2015-12-26T16:22:38.794005+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=POST path="/userList" host=shrouded-shore-8640.herokuapp.com reques
t_id=448abba1-cfa5-479c-9296-670939de4f95 fwd="182.93.90.51" dyno= connect= serv
ice= status=503 bytes=
2015-12-26T16:22:38.932653+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=POST path="/userList" host=shrouded-shore-8640.herokuapp.com reques
t_id=b706f421-538a-4e85-84e9-617369cd3dfa fwd="182.93.90.51" dyno= connect= serv
ice= status=503 bytes=
2015-12-26T16:22:39.158882+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/userList" host=shrouded-shore-8640.herokuapp.com request
_id=4bf0fa6f-1913-486f-ae9e-e1ab5e7b1152 fwd="182.93.90.51" dyno= connect= servi
ce= status=503 bytes=
2015-12-26T16:22:39.820833+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/userList" host=shrouded-shore-8640.herokuapp.com request
_id=f4e285d8-3084-49d0-af46-9490309fc0c3 fwd="182.93.90.51" dyno= connect= servi
ce= status=503 bytes=
2015-12-26T16:22:43.023735+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=POST path="/userList" host=shrouded-shore-8640.herokuapp.com reques
t_id=4b075f15-bed1-4ef5-a6df-a9979c6693bf fwd="182.93.90.51" dyno= connect= serv
ice= status=503 bytes=
2015-12-26T16:22:43.027365+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/userList" host=shrouded-shore-8640.herokuapp.com request
_id=ff5244d7-3438-48c7-8628-b770229b5a4e fwd="182.93.90.51" dyno= connect= servi
ce= status=503 bytes=
2015-12-26T16:22:44.323182+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=POST path="/userList" host=shrouded-shore-8640.herokuapp.com reques
t_id=2d96f080-943c-486d-a2db-d8ebb64789e1 fwd="182.93.90.51" dyno= connect= serv
ice= status=503 bytes=
2015-12-26T16:22:45.014054+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/userList" host=shrouded-shore-8640.herokuapp.com request
_id=5adb320a-b344-4388-9015-184ab1533085 fwd="182.93.90.51" dyno= connect= servi
ce= status=503 bytes=
2015-12-26T16:22:59.501583+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=shrouded-shore-8640.herokuapp.com request_id=beeb
95f3-ac20-414c-b32b-d35647a5ec24 fwd="182.93.90.51" dyno= connect= service= stat
us=503 bytes=
2015-12-26T16:23:03.136290+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=shrouded-shore-8640.herokuapp.com request_id=15ba
f68c-bb75-4b21-8655-da7139ed15fe fwd="182.93.90.51" dyno= connect= service= stat
us=503 bytes=