Websocket failed Invalid frame header

Issue I’m using socket.io with peerjs to create a video conference app. Everything works fine on localhost. but when i push/host it on heroku it shows me this error in the console of browser : index.js:83 WebSocket connection to ‘wss://vidconsom.herokuapp.com/socket.io/?EIO=3&transport=websocket&sid=zbEGAHBj9w_dpcQfAAAF’

Continue reading

Vite error during the deployment to heroku

Issue My folder structure: My scripts: "scripts": { "start": "node main.mjs", "dev": "NODE_ENV=’development’ npx nodemon main.mjs", "build": "cd client && yarn build", "install-client": "cd client && yarn", "heroku-postbuild": "yarn install-client && yarn build" } client/package.json "dependencies": { … }, "devDependencies":

Continue reading

Heroku Cannot GET/

Issue I deployed my project with Heroku and everything works correctly but when I refresh the page I received the error "Cannot GET /home". Is there anyone can help me? https://fresh-bio.herokuapp.com/ server.js: require("dotenv").config(); const express = require("express"); const cors =

Continue reading

Heroku Cannot GET/

Issue I deployed my project with Heroku and everything works correctly but when I refresh the page I received the error "Cannot GET /home". Is there anyone can help me? https://fresh-bio.herokuapp.com/ server.js: require("dotenv").config(); const express = require("express"); const cors =

Continue reading

Why can't my app run on the intended port in Heroku?

Issue I can’t figure out what is the problem with heroku, I’ve spent 2 days trying to figure out what this error means to no avail. 2021-07-18T04:27:08.741998+00:00 app[web.1]: {"level":30,"time":1626582428741,"pid":44,"hostname":"98a3475f-ac16-4dfa-91e0-46d53d3b5e4c","msg":"Server listening at http://127.0.0.1:34196"} Server is running as you can see, but

Continue reading

Why can't my app run on the intended port in Heroku?

Issue I can’t figure out what is the problem with heroku, I’ve spent 2 days trying to figure out what this error means to no avail. 2021-07-18T04:27:08.741998+00:00 app[web.1]: {"level":30,"time":1626582428741,"pid":44,"hostname":"98a3475f-ac16-4dfa-91e0-46d53d3b5e4c","msg":"Server listening at http://127.0.0.1:34196"} Server is running as you can see, but

Continue reading

How to use Express with Vue

Issue First time using Node js, Express and Vue. I have a pomodoro timer website made with vue (not vue-app/vue-cli) which I’m wanting to upload to Heroku. The website works perfectly locally with Webstorm IDE, but can’t manage to make

Continue reading

ETIMEDOUT while connecting remote mysql database from node.js app on heroku server

Issue Example of the code I use: const connection = mysql.createPool({ host: process.env.NEXT_DB_HOST, //*******.timeweb.ru database: process.env.NEXT_DB_DATABASE, //c*****_tech user: process.env.NEXT_DB_USER, //c*****_tech password: process.env.NEXT_DB_PASSWORD, //****** waitForConnections: true, connectTimeout: 100000, connectionLimit: 10, queueLimit: 0 }); connection.query( "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE =

Continue reading

Getting a blank page after starting Angular 10.0.3 app on localhost before deploying to Heroku

Issue I’m getting a blank page on testing my Angular 10.0.3 app. Here the server.js: const express = require(‘express’); const app = express(); app.use(express.static(‘./src’)); app.get(‘/*’, (req, res) => res.sendFile(‘index.html’, {root: ‘./src’}), ); app.listen(process.env.PORT || 8080); package.json: { "name": "fsdoblakoangular", "version":

Continue reading