a year ago
I don't understand how this billing window is generated. I have two projects on Railway:
-
A database, which is where this large charge seems to be coming from. There are actually two databases inside: one for testing and one for production.
-
The app itself.
Where did these high charges come from? Could it really be that my small project requires such overpayments? Is my website currently down just because I didn't pay the extra charges that go beyond the $5 limit?
55 Replies
a year ago
Please click on "View Cost by Service", this will show you the egress from each service.
a year ago
This is usually because you are querying the database using the public url.
and i dont understand what do i do now, since my app is not working anymore. How can i pay those extra money?
a year ago
Sorry, I am not sure what ngrok free is, but egress is going to occur if it is querying your database outside of Railway.
a year ago
Please show a screenshot of the project's dashboard and your workspace's usage page.
a year ago
So, there is private and public networking. Egress is public networking, when your data is being sent out of Railway. This also applies when you query your database via public networking, even if they are both hosted on Railway.
a year ago
May I ask you why your frontend is in a separate project than your backend?
a year ago
You mean, that your frontend is a dashboard for your Telegram bot, right?
Both telegram bot and web site. I can't start the app so i could make screenshots for you 😄
a year ago
Sure. However, I would try to look how you query the database, as this is where the egress of 34GB is coming from in the first place.
a year ago
Can you please elaborate on what's not working here?
That is old screenshots, whenever im trying to run the app i receive:
INFO:config:DATABASE_URL loaded successfully.
INFO:config:DATABASE_URL: postgresql+psycopg2://postgres:PASSWORD@switchback.proxy.rlwy.net:16856/railway
INFO:config:FOOTBALL_API_KEY loaded successfully. First 4 chars: 5553...
INFO:config:Config: SQLALCHEMY_DATABASE_URI is set to: postgresql+psycopg2://postgres:PASSWORD@switchback.proxy.rlwy.net:16856/railway
Traceback (most recent call last):
File "C:\Users\Rastle\V-Total2.0\app.py", line 10, in
from services import get_background_task_service
File "C:\Users\Rastle\V-Total2.0\services_init_.py", line 37, in
BackgroundTaskService = get_background_task_service()
File "C:\Users\Rastle\V-Total2.0\services_init_.py", line 28, in get_background_task_service
from .background_tasks import BackgroundTaskService
File "C:\Users\Rastle\V-Total2.0\services\background_tasks.py", line 48
logger.info("BackgroundTaskService initialized successfully.")
IndentationError: unexpected indent
a year ago
This is a code error
however, whenever im trying to use domain there is logs inside of project that shows us that im trying to access the main page
BUT
[2025-06-07 10:29:20 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:88)
[2025-06-07 10:29:22 +0000] [1] [WARNING] Worker with pid 88 was terminated due to signal 9
[2025-06-07 10:29:22 +0000] [102] [INFO] Booting worker with pid: 102
a year ago
Are we talking about https://www.vtotal.xyz/?
a year ago
I can access the frontend from my end
hold on, is the problem inside of auth process or what, holy crap.
Alright, thank you. What would you suggest to reduce the amount of egress$?
a year ago
Avoid querying your database using the public url unless you have to, since that's where your 34GB of egress comes from. Stop using ngrok for testing your database if it is the reason for the high egress usage.
a year ago
Can you elaborate on why you can't achieve this within Railway and instead have to use an external service to query your database?
a year ago
Please elaborate on the local domain part.
Do you the webapp thing in telegram? WHenever Im trying to deploy everything on 172.168.0.1 telegram does not allow you to use webapp and auth inside of it
The thing is that i got users to predict score for football matches. Whenever matches end API being called to fulfill the score.
a year ago
Well, you have to expose your web app somehow, no one from the outside world can visit something that only exists within your local network. You can host your web app on Railway and let Railway expose it to the public.
a year ago
Egress will occur when calling an external API, however, the ingress, the data that is being sent to your service from the API is free.
a year ago
Can I ask related about pricing question? now I subscribe Pro plan, then my Current usage $ 1.05 and Estimated usage $ 14.68, if my bill is $30 then next payment I need to pay $30 ($30(bill) - $20(cover by PRO plan) + $20(Monthly price for PRO plan) = $30 final price for pay next month. I am correct? Then what benefits if using PRO plan then Hobby plan?
a year ago
Please open your own help thread. This question is unrelated to yours
a year ago
!s
Status changed to Solved uxuz • about 1 year ago









