Luis Kurihara
Railway crashed after errors on trycatch?
Is there any parameter to change in Railway so that it doesn't crash? because I'm using a trycatch that will give a lot of error when it doesn't load a site and the system is crashing on the server... Locally Maintains Normal
im using a loop (for) with try catch and like , 5 catch the system crashed , why?
36 replies
Error using playwright on project
I´ve trying to deploy my scraping server, but the railway faild building e deploying
here is the log system and my dependencies in package json
I have authorization to scrapy, plus it's public data
"dependencies": {
"axios": "^1.6.8",
"dotenv": "^16.4.5",
"env-var": "^7.4.1",
"fs": "^0.0.1-security",
"jsdom": "^24.0.0",
"node-cron": "^3.0.3",
"node-schedule": "^2.1.1",
"nodemailer": "^6.9.13",
"openai": "^4.29.2",
"pg": "^8.11.3",
"playwright": "^1.42.1",
"prompt-sync": "^4.2.0",
"sequelize": "^6.37.1"
}
101 replies
ES module Error Sequelize on Deploy using migration
i ve tested on vscode and works perfect!
my script start: "start": "sleep 3 && npx sequelize db:migrate && node ./dist/server.js"
example migration, using es module:
export default {
async up(queryInterface, Sequelize) {
await queryInterface.createTable('states', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.DataTypes.INTEGER
},
name: {
allowNull: false,
type: Sequelize.DataTypes.STRING
},
created_at: {
allowNull: false,
type: Sequelize.DataTypes.DATE
},
updated_at: {
allowNull: false,
type: Sequelize.DataTypes.DATE
}
});
},
async down(queryInterface, Sequelize) {
await queryInterface.dropTable('states');
}
};
im tring to migrate and have this issue:
5 replies