Questions tagged [railway]

101 questions
0
votes
0 answers

Csrf post error when I'm trying to sign in

On a local server, my webapp was working perfectly, but in production I get a csrf post error whenever I try to sign in or register. In settings.py I have django.middleware.csrf.CsrfViewMiddleware I have tried pretty much every suggestion I have…
arch_er45
  • 1
  • 1
0
votes
1 answer

Trying to deploy Strapi CMS with TypeScript to Railway and get: "Cannot find module 'typescript'"

Details Trying to deploy strapi CMS written in TypeScript to Railway. I know there's a JavaScript Template, annoyingly there's not a TypeScript Template and there's nothing on the docs about deployment to Railway with TypeScript. Error logs from…
0
votes
0 answers

Why is uploading a file from Railway to AWS S3 bucket extremely slow?

I'm located in Saudi Arabia, and I have a web app that enables users to upload files. These files are stored in AWS S3 buckets (My S3 Bucket is located in EU). I deployed my web app using Railway, knowing the fact that Railway's servers are located…
0
votes
0 answers

Error creating cron job for Python script on Railway

I'm trying to run a Python script on Railway.app, every 30 seconds, but it's not working. I tried with the codes below inside my project, but it seems to me that there is something wrong that doesn't work well. The main.py file runs normally once,…
0
votes
0 answers

Nextjs image component not showing images on large screens in production

I am using the Next.js Image component so it can optimze my images. On my local machine the images are being displayed well, but after deploying on railway, the images are only showing on small screens. At first they were not even showing at all…
Enoch
  • 11
  • 1
  • 3
0
votes
2 answers

Why is my Node.js app crashing in production only?

I'm facing a tricky problem regarding app crashes in production. I built a web app using node.js and deployed it to Railway, and I haven't covered each edge case or each error that might occur. In local development, if an error occurs and gets…
Saud Alghamdi
  • 149
  • 1
  • 9
0
votes
0 answers

How to run schedule on Railway?

I want to Railway run regular updates. I asked Chat GPT ways to accomplish it, it suggested creating railway.yml with the following content: version: '1.0' services: someName: build: dockerfile: Dockerfile env: PORT: $${PORT} …
Chlodio
  • 205
  • 1
  • 3
  • 10
0
votes
0 answers

Cannot deploy server for a Chat App (react js, mongoose, express, and socket.io) via Railway App

Hello I am trying to deploy my server to Railway App, but it gives me this error. Why do I need to change my listening to 0.0.0.0:$PORT? Message: Looks like your app is listening on 127.0.0.1. You may need to listen on 0.0.0.0 instead. npm WARN…
mtvdoan
  • 1
  • 2
0
votes
0 answers

Strapi v4.7.0 saving relations not behaving properly

I have a single type called FAQs, with one-to-many relations to categories of FAQs, such as Booking FAQs, Appointment FAQs, etc. which are of collection types. After adding relations to FAQs and saving, the save is not persisting. Here is what it…
0
votes
1 answer

Can't Connect to Railway MongoDB using ExpressJS

I'm trying to connect to a Railway MongoDB I set up with expressJS but I keep getting an "Authentication Failed" Error. Here is my code: import mongoose from "mongoose"; const connect = async () => { …
0
votes
0 answers

Hitting AWS Lambda function from an API hosted on railway.app throws 403 Error from CloudFront

I have a NestJs application that is uses the serverless package to deploy my API onto aws lambdas and another NestJs application hosted on Railway that uses websockets. I haven't not configured anything to make my lambda use CloudFront, and testing…
0
votes
0 answers

How can I fix error 1.006 install: missing file operand, when I am deploying Laravel in Railway?

The Laravel deployment with Railway show this log error: #15 [11/12] RUN NIXPACKS_BUILD_CMD=composer install && npm i && npm run build && php artisan optimize && php artisan config:cache && php artisan migrate --force #15…
0
votes
1 answer

How to use MongoDB cli database tools in railway?

in a current MERN stack project (github repo) I am trying to implement a mechanism that resets two documents in my mongo db to default data once a day at midnight to reset changes made by others to the live website of the project. For this I use the…
LuckyChimp
  • 35
  • 8
0
votes
1 answer

Trying to host on Railway but get Error: Cannot find module './models/product'

Railway error I decided to host my website(made on express.js) on railway. But i get Error: Cannot find module './models/product'. Even if it works on localhost How directory looks Why this is happening ? And how can i fix it ? But this wont…
ESAR0
  • 1
  • 2
0
votes
0 answers

Deploy in railway not working with gradle.build.kt

I need to deploy a aplication in railway, but any time returno this error: Caused by: java.lang.ClassNotFoundException: br.com.zezinho.helpdesk Error: Could not find or load main class br.com.zezinho.helpdesk My path is correct. github:…