Issue connecting to internal service
santiagomed
TRIALOP

2 years ago

I have an external API server and an internal service that connect through gRPC. When the API calls the internal service I am receiving an error.

failed to add request: failed to exit idle mode: invalid target address http://boil-engine.railway.internal:8080, error info: address http://boil-engine.railway.internal:8080:443: too many colons in address

// Go code for gRPC server
	service, err := service.NewEngineService(config, logger)
	if err != nil {
		logger.WithField("error", err).Fatal("Failed to create engine service")
	}

	lis, err := net.Listen("tcp", "[::]:"+config.Port)
	if err != nil {
		logger.WithField("error", err).Fatal("Failed to listen")
	}

	grpcServer := grpc.NewServer()
	pb.RegisterEngineServiceServer(grpcServer, service)

Not sure where the 443: is coming from. I am running both the "boil-engine" and the external API in Docker containers with alpine image and exposing port 8080 in both. I am using HOST=0.0.0.0 and PORT as the one injected by Railway in both services.

Any help appreciated.

Thanks

1 Replies

2 years ago

Not sure where the 443: is coming from.

That would be your issue or at least the main issue, please look into fixing that and then we can continue to debug if fixing that doesn't solve the issue.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...