R
Railway14mo ago
hitesh

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:
if you are making requests to the same http://authserver.railway.internal/auth/jwt/jwks.json url it wont work, you havent specfied a port
Jump to solution
21 Replies
Percy
Percy14mo ago
Project ID: 98e76ea6-19e8-422c-813b-d262b3a47e33,feeb6fda-8c46-45b8-ada2-8afeea586819
hitesh
hitesh14mo ago
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
Brody
Brody14mo ago
the private network is not available during build
hitesh
hitesh14mo ago
Hey its not working during container run also.
hitesh
hitesh14mo ago
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.
hitesh
hitesh14mo ago
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
Brody
Brody14mo ago
if you are making requests to the same http://authserver.railway.internal/auth/jwt/jwks.json url it wont work, you havent specfied a port
Brody
Brody14mo ago
these are internal addresses, youd need to specify a port
hitesh
hitesh14mo ago
damn., you so clever. but no. still the same. I used http://authserver.railway.internal:9000/auth/jwt/jwks.json
hitesh
hitesh14mo ago
Brody, can you send me friend request. Its not about this debugging.
Brody
Brody14mo ago
whats it about then
hitesh
hitesh14mo ago
I want to know how this is going.. supporting railway clients without being paid etc.. Want to learn from you.
Brody
Brody14mo ago
im chillin
hitesh
hitesh14mo ago
lets chill together on zoom call?
Brody
Brody14mo ago
no thank you why is the log only 6 lines?
hitesh
hitesh14mo ago
idk. I dont talk to strangers too. Bye.
Brody
Brody14mo ago
what
Brody
Brody14mo ago
im just trying to help?
hitesh
hitesh14mo ago
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.
Want results from more Discord servers?
Add your server