GithubHelp home page GithubHelp logo

Comments (8)

mastersingh24 avatar mastersingh24 commented on July 29, 2024

@rtang03 - the NodeJS grpc library does indeed use camelCase for the service methods. Are you seeing an issue?

from cp-web.

rtang03 avatar rtang03 commented on July 29, 2024

In my experimental program, I am using nodes grpc to calling my local dev sandbox. The grpc library returns error code: 12.

{"code":12,"metadata":{"_internal_repr":{}}}

I guess this is referred as "unimplemented method" Indeed, I could find the status code table. And therefore, I doubt that camelCase-ed client side (readCaCertificate) can call correctly original "ReadCACertifcate".

from cp-web.

mastersingh24 avatar mastersingh24 commented on July 29, 2024

hmm - this code has been working for a while so not sure what's going on.
we'll give it another test on our end.

On Mon, May 9, 2016 at 12:09 PM, rtang03 [email protected] wrote:

In my experimental program, I am using nodes grpc to calling my local dev
sandbox. The grpc library returns error code: 12.

{"code":12,"metadata":{"_internal_repr":{}}}

I guess this is referred as "unimplemented method" Indeed, I could find
the status code table. And therefore, I doubt that camelCase-ed client side
(readCaCertificate) can call correctly original "ReadCACertifcate".


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#10 (comment)

from cp-web.

rtang03 avatar rtang03 commented on July 29, 2024

I guess that the CA server is implemented with grpc with go, and compiled to ca.pb.go. And, the give below interface.

// Client API for ECAP service
type ECAPClient interface {
    ReadCACertificate(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Cert, error)

and
func (c *eCAPClient) ReadCACertificate(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Cert, error) {

It is styled with upper-case-ed first letter.

Hence, the grpc.load in Nodejs and in GoLang, give different service.methods.

Maybe, I may try your working code. But, how can I trigger ECAP.readCaCertificate() in your code?

from cp-web.

mastersingh24 avatar mastersingh24 commented on July 29, 2024

@rtang03 - sorry for the late response. I just cloned and reinstalled cp-web myself. Assuming you are in the cp-web folder and running membersrvc locally with the default config, if you run

node utils/loopback-connector-obcca/test/unit/02-test-connector.js

you will see all of the calls working

from cp-web.

rtang03 avatar rtang03 commented on July 29, 2024

Is the connection 127.0.0.1:30303 correct?

from cp-web.

mastersingh24 avatar mastersingh24 commented on July 29, 2024

Ah - the default port for membersrvc is 50051

from cp-web.

rtang03 avatar rtang03 commented on July 29, 2024

This is not related to camelCase, nor grpc issue.

I git-pull latest fabric, and it works. My previous local dev is outdated, and did not give right behaviour. And, your code works as well.

Thank you for your help.

from cp-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.