R
Railway•9mo ago
Nafi

Allow dynamic endpoint extensions

I am running a telegram bot api server to handle large files: https://github.com/aiogram/telegram-bot-api I am successfully able to use the server and use telegram's getFile method to retrieve the file location, however when I navigate to the URL (the file is stored on an attached volume) I get a 404 method not allowed error. How can I fix this?
GitHub
GitHub - aiogram/telegram-bot-api: Docker image of Telegram Bot API...
Docker image of Telegram Bot API Server. Contribute to aiogram/telegram-bot-api development by creating an account on GitHub.
12 Replies
Percy
Percy•9mo ago
Project ID: b6cc7b7c-3baf-4567-8409-a5e9e2b8b080
Nafi
Nafi•9mo ago
b6cc7b7c-3baf-4567-8409-a5e9e2b8b080 I also tried listening on the railway internal network with [::] but when I make a request to https://railway.internal.domain/ it does not resolve (using aiohttp in python) @Brody Any thoughts? I used the volume file browser and the file is definitely there
Nafi
Nafi•9mo ago
I cannot mount to /etc/*
No description
Nafi
Nafi•9mo ago
GitHub
GitHub - tdlib/telegram-bot-api: Telegram Bot API server
Telegram Bot API server . Contribute to tdlib/telegram-bot-api development by creating an account on GitHub.
Brody
Brody•9mo ago
show me the code that is setup to serve the files
Nafi
Nafi•9mo ago
found the issue
Nafi
Nafi•9mo ago
GitHub
Download files from not local mode · Issue #26 · tdlib/telegram-bot...
The file path is like documents/file_5, but I cant figure out how to download it. It doesn't work like the cloud API suggests, I am getting a 404 not found error then. Am I missing something?
Nafi
Nafi•9mo ago
but how would I be able to serve if the volume is mounted to the retriever...
Brody
Brody•9mo ago
the volume needs to be mounted to the app that is both downloading and serving the files
Nafi
Nafi•9mo ago
the app does not support serving when using the --local flag, which is what I need can you mount a volume to two services?
Brody
Brody•9mo ago
you cant
Nafi
Nafi•9mo ago
😭
Want results from more Discord servers?
Add your server