Private Networking not working for me
The auth service is already up and running > 100ms.
But other services are not able to hit it.
https://railway.app/project/98e76ea6-19e8-422c-813b-d262b3a47e33/service/feeb6fda-8c46-45b8-ada2-8afeea586819/settings
[stage-1 4/4] RUN curl http://authserver/auth/jwt/jwks.json:
--:--:-- --:--:-- 0curl: (6) Could not resolve host: authserver
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Solution:Jump to solution
if you are making requests to the same
http://authserver.railway.internal/auth/jwt/jwks.json
url it wont work, you havent specfied a port21 Replies
Project ID:
98e76ea6-19e8-422c-813b-d262b3a47e33,feeb6fda-8c46-45b8-ada2-8afeea586819
tried this also:-
14 | curl
15 | COPY --from=builder /app/target/release/api /api
16 | >>> RUN curl http://authserver.railway.internal/auth/jwt/jwks.json
17 | CMD ["/api"]
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: authserver.railway.internal
the private network is not available during build
Hey its not working during container run also.
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
thread 'main' panicked at 'Unable to fetch jwk keys! Cannot verify user tokens! Shutting down...', src/config/auth/jwk/jwk_auth.rs:29:17
My app isnt able to fetch keys from private networking url. Although I can use public because its just public keys. But the point being private network not working.
Solution
if you are making requests to the same
http://authserver.railway.internal/auth/jwt/jwks.json
url it wont work, you havent specfied a portthese are internal addresses, youd need to specify a port
damn., you so clever.
but no. still the same.
I used http://authserver.railway.internal:9000/auth/jwt/jwks.json
error logs please https://bookmarklets.up.railway.app/log-downloader/
Brody, can you send me friend request. Its not about this debugging.
whats it about then
I want to know how this is going.. supporting railway clients without being paid etc.. Want to learn from you.
im chillin
lets chill together on zoom call?
no thank you
why is the log only 6 lines?
idk. I dont talk to strangers too. Bye.
what
im just trying to help?
Yeah.. was kidding because you didnt agree for zoom call with "no thank you" is like a toddler rejecting a request because he dont talk to strangers. All in good faith. You have helped here. Thank you.