Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iris gRPC wrapper breaking #2288

Closed
rac-sri opened this issue Nov 22, 2023 · 1 comment
Closed

Iris gRPC wrapper breaking #2288

rac-sri opened this issue Nov 22, 2023 · 1 comment
Assignees

Comments

@rac-sri
Copy link

rac-sri commented Nov 22, 2023

I have a gRPC end point which works fine when I run it via "net" library. When I try to create a wrapper around it using Iris the code breaks.

To Reproduce
Steps to reproduce the behavior:

  1. You can use the following code as reference:
func SetupApplicationWithGRPC() *iris.Application {
	app := iris.New()
 
	grpcServer := grpc.NewServer()
 
	authenticationServer := &authentication.AuthenticationServer{}

	pb.RegisterAuthenticationServer(grpcServer, authenticationServer)

	// fmt.Print(pb.File_authentication_proto.Services().Get(0).FullName())
	
	mvc.New(app).Handle(authenticationServer, mvc.GRPC{
		Server: grpcServer,
		ServiceName: "authentication.Authentication",
		Strict: false,
	})
 
	return app;
 }

The app breaks at rootApp.Handle.

Expected behavior
The server should spin up normally with an HTTP wrapper around it.

Screenshots
Screenshot 2023-11-22 at 7 10 17 PM

Desktop (please complete the following information):

  • OS: macos Sonomo

iris.Version

  • main
@rac-sri rac-sri changed the title Iris gRPC wrapper breaks Iris gRPC wrapper breaking Nov 22, 2023
@rac-sri rac-sri closed this as completed Nov 22, 2023
@rac-sri
Copy link
Author

rac-sri commented Nov 22, 2023

Got it resolved. Issue was not all rpc functions from proto were implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants