Git Product home page Git Product logo

Comments (2)

AlfieJones avatar AlfieJones commented on May 25, 2024 1

It'd be awesome if we could get the static generation working too. ts-proto makes it pretty easy to generate the code with es modules & typescript.

I put together a fork of your fork with the typescript generated for the helloworld example: https://github.com/AlfieJones/grpc-node/tree/es_examples.

I used the following to generate the types:

protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=. ./examples/protos/helloworld.proto --ts_proto_opt=outputServices=grpc-js,importSuffix=.js

Currently, I'm getting the following error for that example:
"Request message serialization failure: Cannot read properties of undefined (reading 'from')"

from deno.

satyarohith avatar satyarohith commented on May 25, 2024 1

error_handling client example works with #23755

➜  examples git:(main) denod run -A --unstable-byonm error_handling/client.js
[1] Calling SayHello with name:""
Warning: Not implemented: Http2Session.socket
[1] Received error 3 INVALID_ARGUMENT: request missing required field: name
[2] Calling SayHello with name:"sr"
Warning: Not implemented: Http2Session.socket
[2] Received response Hello sr
[3] Calling SayHelloStreamReply with name:""
Warning: Not implemented: Http2Session.socket
[3] Received expected error 3 INVALID_ARGUMENT: request missing required field: name
[3] Received status with code=INVALID_ARGUMENT details=request missing required field: name
[4] Calling SayHelloStreamReply with name:"sr"
Warning: Not implemented: Http2Session.socket
[4] Received response Hello sr
[4] Received response Hello sr
[4] Received response Hello sr
[4] Received response Hello sr
[4] Received response Hello sr
[4] Received status with code=OK details=OK

from deno.

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.