Coder Social home page Coder Social logo

Comments (4)

jhump avatar jhump commented on June 17, 2024

@HT808s, are you using server reflection, or are you pointing grpcurl at your proto source files? If the latter, maybe it is possible that your are pointing grpcurl at different protos than were used to build the server?

This error indicate that the server is not using the same protocol. A google.protobuf.Timestamp is a nested message, and message fields use the "length-delimited" wire type to encode the field value (vs. "varint", "fixed32", or "fixed64" wire types that other field types use). The server is sending back a response where that field number is encoded with one of these other wire types. This usually indicates that the server is using a different protocol than the client.

Maybe you changed the protocol from an int64 milliseconds-since-epoch to a google.protobuf.Timestamp, but forgot to recompile the server?

from grpcurl.

jhump avatar jhump commented on June 17, 2024

If you use server reflection, problems like this should go away since you can be certain that grpcurl uses the same protocol as the server.

If you are using server reflection, can you tell us more info? Maybe share the .proto file that defines the service and also let me know what language/runtime the server is written in?

from grpcurl.

HT808s avatar HT808s commented on June 17, 2024

Thanks for your reply!
I don't rely on reflection, I used a protoset file, I'll double check if I used the same proto file version for my server and grpcurl

from grpcurl.

HT808s avatar HT808s commented on June 17, 2024

There was indeed a subtle difference between the proto server side and grpcurl side !
Thanks for giving me a lead on this error !

from grpcurl.

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.