This issue started yesterday. All my API requests to the server are timing out. There are no more error messages in the Logs. No coding issues are being flagged. When you try to view any of the webpages, it just continuously says it’s trying to wake up. I’ve sent a refresh command to the instance and that didn’t seem to help.
I really don’t know what to do at this point - any help would be greatly appreciated!
Is there a project link and some code that you could point us to? Maybe some people can try to diagnose what the issue is then
Maybe @glitch_support can hard restart your project. Can you access the terminal?
I can access the terminal. I issued a refresh command. Is there another restart I can issue?
We can wait for Glitch support. They have the power to hard restart your project.
Or you can send them an email.
The code is confidential unfortunately, so I can’t share it with you.
Could you share the package.json file only? That should not have anything confidencial in it.
{
“name”: “@slack/worksplaceEngineering”,
“version”: “1.0.0”,
“private”: true,
“description”: “”,
“main”: “index.js”,
“scripts”: {
“test”: “echo “Error: no test specified” && exit 1”,
“start”: “node index.js”
},
“author”: “Connor A”,
“license”: “MIT”,
“dependencies”: {
“@slack/bolt”: “^1.8.0”,
“aws-sdk”: “^2.656.0”,
“markdown-it”: “^v8.4.2”,
“request”: “^2.88.2”,
“request-promise”: “^4.2.5”
}
}
Hello T2condor,
I’ll try a full restart of that project for you. What is its name?
Sorry for the delay, incongruous-run
Hi @T2condor,
I tried hard restarting and it doesn’t seem to help. I’m going to file a bug with the team so they can take a closer look. When was the last time the project was loading properly?
Thanks!
I’d say around 2pm CST 4/21
1 Like
Ok I finally figured it out. I had somehow lost the ending parenthesis on this function that starts my server. For some reason it wasn’t throwing any errors, but i just kept looking at the Rewind logs to see what changed in the past 2 days. Thanks for everyones help!
(async () => {
await app.start(process.env.PORT || 3000);
console.log("⚡️ Bolt app is running!");
// after the app is started we are going to retrieve our Bot's user id through
// the `auth.test` endpoint (https://api.slack.com/methods/auth.test)
// and store it for future reference
let id = await app.client.auth
.test({ token: process.env.SLACK_BOT_TOKEN })
.then(result => console.log("hello? ", result));
store.setMe(id);
})() <----- ***this was missing***
1 Like