Allow dynamic endpoint extensions

nxfi777PRO

a year ago

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?

0 Replies

nxfi777PRO

a year ago

b6cc7b7c-3baf-4567-8409-a5e9e2b8b080


nxfi777PRO

a year ago

I also tried listening on the railway internal network with [::] but when I make a request to [https://railway.internal.domain/](https://railway.internal.domain/) it does not resolve (using aiohttp in python)


nxfi777PRO

a year ago

<@539512869780455445> Any thoughts?


nxfi777PRO

a year ago

I used the volume file browser and the file is definitely there


nxfi777PRO

a year ago

I cannot mount to /etc/*


nxfi777PRO

a year ago


a year ago

show me the code that is setup to serve the files


nxfi777PRO

a year ago

found the issue



nxfi777PRO

a year ago

but how would I be able to serve if the volume is mounted to the retriever…


a year ago

the volume needs to be mounted to the app that is both downloading and serving the files


nxfi777PRO

a year ago

the app does not support serving when using the --local flag, which is what I need


nxfi777PRO

a year ago

can you mount a volume to two services?


a year ago

you cant


nxfi777PRO

a year ago

😭