Billy
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
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
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
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
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