Project is stuck loading and loading and loading

Hi, my project is down and I’m not sure what to do. It’s been down for about 3 hours now, and it’s not using anything near the limits.

This is a school project for a web design course I’m taking. I’d like to get this resolved because I am still trying to debug and finalize before it’s due tomorrow.

hi @sarah-bell88 and welcome to the glitch forum!

can you check your logs for any errors?

Hi, I wasn’t seeing any errors on my console, but I’d switched back to working off of my local machine after my changes resulted in my project going to “sleep.”

right, no errors.

I just checked the glitch status and it is fine at the moment.

Can you post a link to the website that is sleeping? This is the project.

1 Like

have you got an index.html file?

and are you using node.js?

if not:

  1. change the main html file name to ‘index.html’

did that help @sarah-bell88?

The main html file is index.html, and I am using node.

I was working on a script to submit user input from a form to a postgres database before it went down-- up to that point, it had been working fine. Does that help as well?

okay, check your package.json file

does it have a start script?


"scripts": {
    "start": "node server.js"

It does not, right now it has:

  "scripts": {
"test": "echo \"Error: no test specified\" && exit 1"

okay, glitch requires you to have a start script in your package.json for the app to run.

add this-

"scripts": {
    "start": "node FILENAME.js"

replace FILENAME with your js file name, i’m going to assume your using express right?

if so:

"scripts": {
    "start": "node server.js"

I am planning on using express! But that definitely started throwing up a lot of errors. I have two separate JS files, one for an animated carousel on the index page, and one for collecting vote information. Both of those things threw up a lot of errors when I put them in for ‘FILENAME.js’.

The error I’m seeing now is:
Error: Cannot find module 'express-handlebars'

1 Like

okay, goto your package.json file and click ‘add package’.

then type ‘express-handlebars’

do you mind PMing me a join link so I can take a look at the issue?

1 Like

issue fixed

1 Like

Wow, that was fast @random.

1 Like

i like to call it - being quick

Gonna Quickly Weigh in here
if you having errors With
setting up express
Try this code for your Start up file

const express = require(“express”);
const app = express();


app.get(“/”, (request, response) => {
response.sendFile(__dirname + “public/index.html”);

app.use(function(req, res, next) {
res.status(404).sendFile(__dirname + “/404.html”);

// send the default array of dreams to the webpage

// listen for requests :slight_smile:
const listener = app.listen(process.env.PORT, () => {
console.log("Your app is listening on port " + listener.address().port);

This has a 404 Page Not found Which i have Block quoted

also This is my Package.json

“//1”: “describes your app and its dependencies”,
“//2”: “”,
“//3”: “updating this file will download and update your packages”,
“name”: “hello-express”,
“version”: “0.0.1”,
“description”: “A simple Node app built on Express, instantly up and running.”,
“main”: “server.js”,
“scripts”: {
“start”: “node server.js”
“dependencies”: {
“express”: “^4.17.1”
“engines”: {
“node”: “12.x”
“repository”: {
“url”: “Glitch :・゚✧
“license”: “MIT”,
“keywords”: [

Hopefully i helped