Billy
Billy
RRailway
Created by Billy on 8/30/2024 in #✋|help
Twitter/X API failing requests (401: Unauthorized) only when hosted on Railway
I'm using the official Twitter/X API with a bearer token. It's working locally and the request is going thru on postman, but not on Railway. Any ideas?
6 replies
RRailway
Created by Billy on 10/23/2023 in #✋|help
Python Telegram Bot Webhooks Error
Hey, I'm deploying a telegram bot (python-telegram-bot library) with a server/webhooks. It works locally, but not when deployed to railway. I'm getting an error on this line it seems: await application.bot.set_webhook(url=f"{URL}/telegram", allowed_updates=Update.ALL_TYPES) Logs attached below.
28 replies
RRailway
Created by Billy on 9/27/2023 in #✋|help
Error when installing nixpacks
I have the environment variable NIXPACKS_APT_PKGS=fonts-liberation, but it stopped working when i re-deployed today. The error message: ERROR: failed to solve: process "/bin/bash -ol pipefail -c apt-get update && apt-get install -y --no-install-recommends fonts-liberation" did not complete successfully: exit code: 1
11 replies
RRailway
Created by Billy on 7/31/2023 in #✋|help
How to share read-only access to Postgres database
I have a Postgres database on Railway. What would be the best way to give somebody read-only access to the data?
6 replies
RRailway
Created by Billy on 6/15/2023 in #✋|help
How to project cost of Postgres rows?
Anyone have a good method to estimate the cost per row of a Postgres DB hosted on Railway? I wanna charge clients based on the amount of storage they require to serve.
6 replies
RRailway
Created by Billy on 4/11/2023 in #✋|help
Quick q: Where do i db_restore?
I read this post https://blog.railway.app/p/automated-postgresql-backups , but as a SQL newb i need more context on where/how to run the pg_restore command. I use pgAdmin.
15 replies
RRailway
Created by Billy on 3/6/2023 in #✋|help
Python server
I'm running a simple server using aiohttp: site = web.TCPSite(runner, host='0.0.0.0', port=self.webserver_port) await site.start() Profile: web: python bot/main.py But the site displays a "404 not found" error. Any ideas?
20 replies
RRailway
Created by Billy on 3/6/2023 in #✋|help
HTML -> Image (Python)
All i want to do is convert a pandas dataframe (which can be expressed as an HTML table) to an image file. I've tried 1) dataframe-image and 2) html2image which both use chrome. I've installed as many helper packages i can find to try to get chrome to work, but the final boss error is 'cannot connect to dbus/system_bus_socket: no such file or directory'. I've also tried 3) imgkit which uses wkhtmltopdf/wkhtmltoimage. When I put NIXPACKS_PKGS=wkhtmltopdf
7 replies
RRailway
Created by Billy on 2/24/2023 in #✋|help
Chrome / Chrome Driver paths
Has anyone figured a good way to get the chrome path / install chrome driver if necessary? Using python.
59 replies
RRailway
Created by Billy on 2/22/2023 in #✋|help
File I/O Python
Hey I'm trying to write/open files with Python. Specifically using dataframe-image (dfi.export) and Image.open(). Is Railway equipped with any sort of temporary file storage system (CSVs and PNGs in my case)? If so, what are best practices? Project ID: f18343ec-ab6f-4f93-beeb-d57c935e4e38
9 replies