3 months ago
I don't understand how this billing window is generated. I have two projects on Railway:
1) 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.
2) 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?
1 Replies
3 months ago
Please click on "View Cost by Service", this will show you the egress from each service.
3 months ago
This is usually because you are querying the database using the public url.
u mean modern-blah-blah.ngrok-free.app ?
like vtotal.xyz
and i dont understand what do i do now, since my app is not working anymore. How can i pay those extra money?
3 months 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.
3 months ago
Please show a screenshot of the project's dashboard and your workspace's usage page.
so it means that using domain vtotal.xyz would be pricy for me?
3 months 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.
3 months ago
May I ask you why your frontend is in a separate project than your backend?
3 months 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 😄
3 months 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.
3 months 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:DATABASEURL loaded successfully. INFO:config:DATABASEURL: postgresql+psycopg2://postgres:PASSWORD@switchback.proxy.rlwy.net:16856/railway
INFO:config:FOOTBALLAPIKEY loaded successfully. First 4 chars: 5553…
INFO:config:Config: SQLALCHEMYDATABASEURI 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](app.py)", line 10, in
from services import getbackgroundtaskservice File "C:\Users\Rastle\V-Total2.0\services_init.py", line 37, in BackgroundTaskService = getbackgroundtaskservice() File "C:\Users\Rastle\V-Total2.0\services_init.py", line 28, in getbackgroundtaskservice from .backgroundtasks import BackgroundTaskService
File "C:\Users\Rastle\V-Total2.0\services\background_tasks.py", line 48
logger.info("BackgroundTaskService initialized successfully.")
IndentationError: unexpected indent
3 months ago
This is a code error
I mean right now i got deploy on vtotal.xyz
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
3 months ago
Are we talking about https://www.vtotal.xyz/?
3 months 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$?
3 months 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.
3 months 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?
3 months 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.
3 months 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.
3 months 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.
3 months 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?
3 months ago
Please open your own help thread. This question is unrelated to yours
3 months ago
!s
Status changed to Solved uxuz • 3 months ago