Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Condor isn't registering the method handler  #49

Description

@aleffsouza

I'm getting this error when server starts:

Method handler placeOrder for /order.OrderService/placeOrder expected but not provided

I've put some logs in the builder.js line 13 (add method) and I got all output I was expecting, I even could call the implementation

syntax = "proto3";

package order;

message OrderItem {
    required string name = 1;
    required float price = 2;
}

message User {
    required string name = 1;
    required string address = 2;
}

message Order {
    required User user = 1;
    repeated OrderItem items = 2;
}

message Empty {}

service OrderService {
    rpc placeOrder(Order) returns (Empty);
}

OrderServices server:

const Condor = require('condor-framework')

class OrderService {
	placeOrder(ctx) {
		// ...
	}
}

const options = {
	'listen': '0.0.0.0:50052',
	'rootProtoPath': '../protos',
}

const OrderServiceImpl = new OrderService()

const app = new Condor(options)
	.add('order_service.proto', 'OrderService', OrderServiceImpl)
	.start()

Futhermore I implemented this same server using malijs and it had worked perfectly.

npm 5.5.1
node 9.1.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions