R
Railwayβ€’2mo ago
jegnux

Can't connect to my GRPC server in production (works in staging)

I have a backend developed in Swift / Vapor that exposes en GRPC server for my mobile app. In staging environment, with the railway proxied domain and port, it works great. But in production I wanted to setup a custom domain, but it doesn't work (GRPC Error : deadlineExceeded) . I'm not sure if it's because of the custom domain name or something else (I'm a mobile developer, and backend / infra is quite new for me πŸ˜‡)
Solution:
gRPC uses HTTP/2, The domains may accept HTTP/2 traffic but they will demux down to HTTP/1.1 breaking gRPC in the process, you would need to continue using the TCP Proxy.
Jump to solution
5 Replies
Percy
Percyβ€’2mo ago
Project ID: 514d89a5-dd8e-4c00-87ad-520e173a207f
jegnux
jegnuxOPβ€’2mo ago
514d89a5-dd8e-4c00-87ad-520e173a207f
Solution
Brody
Brodyβ€’2mo ago
gRPC uses HTTP/2, The domains may accept HTTP/2 traffic but they will demux down to HTTP/1.1 breaking gRPC in the process, you would need to continue using the TCP Proxy.
jegnux
jegnuxOPβ€’2mo ago
so I can't use a custom domain at all right ?
Brody
Brodyβ€’2mo ago
correct, for HTTP/2 traffic at least
Want results from more Discord servers?
Add your server