5 months ago
og closed unsolved thread:
https://discord.com/channels/713503345364697088/1418192459384750140/1418192459384750140
<@286358120676982784>
> it does seem like that you are getting blocked by their servers as they may not want their contents to be downloaded programmatically
as I mentioned, I'm getting 403, when trying to fetch my API hosted on Railway, but that request never gets to it
and if u'll read convo, me and other user was using that API hosted on Railway to download file just fine, error occurs only when I'm doing that on deploy
42 Replies
5 months ago
Apologies, seems like I misunderstood. Have you tried requesting your API using https instead of http?
5 months ago
The screenshot of the error message in the initial thread shows wget http:// -> moved permanently -> https://. I'll get to my laptop and see if I can reproduce this issue of 403 when requesting your server. Is this currently limited to any path and/or method (such as only an issue with POST)?
I see, my bad, maybe I didn't changed that when I was using different service
U can see all endpoints and methods with
https://api.satan1c.dev/list
The only limitation, is fetchFile has "auth" check, u can see that in the end of request
5 months ago
Logs may be delayed, I'll try to reproduce it. Does this only happen with wget or in general when trying to download your own file from your own API with a different service?
Cuz… I made that api in first place to roll out new game versions w/o touching repo
5 months ago
I just created two Dockerfiles, one that runs wget during build and one at runtime. The one during build seems to get blocked.
If postman/insomnia/browser is decent list of "different service", then ye, it's fine there
5 months ago


5 months ago
I am unsure if this is the only way, but it is one of the solutions I can currently offer as that seems to work.
That looks like a bug… Idk if I should report it somehow <:HuTaoThink:830708889141248011>
Oh, I forgot to mention one thing
Previously I was using different 3rd party service to download, and it was working just fine
So it broke right after I decided to use my own service
I was using
it doesn't have open API so I was using their internal endpoints used for frontend
5 months ago
I believe that I have managed to fix it and download your zip file during build. Give me a moment, I'll see if I can reproduce it and provide a MRE.
5 months ago
FROM alpine:latest
RUN apk add --no-cache wget
RUN wget \
--header="User-Agent: Mozilla/5.0 (X11; Linux x86_64)" \
"https://api.satan1c.dev/utility/fetchFile/dol?post_id=8002475831210169689&linux_dol_web_my=file_fetcher" \
-O /file.zip
CMD ["echo", "done"]5 months ago
Adding the User-Agent header seems to work.
5 months ago
That's odd that you can see any logs, is this also the case with other services you have within Railway, such as your API?
I can see logs of all other services, but only when that one fails I can't see build logs
5 months ago
Can you share a screenshot of it?
it looks like that, and if I open logs, it looks like that https://discord.com/channels/713503345364697088/1421800290230992979/1421822390555513052

ye, got "no logs" again xD
so I can assume it passes unzip now, but fails at CMake step, so I'll need to investigate that on local first <:miyabilay:1381552435293851658>
5 months ago
I'll raise the no build logs issue internally.
5 months ago
I'll mark this thread as solved!
5 months ago
!s
Status changed to Solved uxuz • 5 months ago

