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:Jump to 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.
5 Replies
Project ID:
514d89a5-dd8e-4c00-87ad-520e173a207f
514d89a5-dd8e-4c00-87ad-520e173a207f
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.
so I can't use a custom domain at all right ?
correct, for HTTP/2 traffic at least