Giter Club home page Giter Club logo

Comments (5)

leaxoy avatar leaxoy commented on June 2, 2024 3

This take effect, thanks a lot. But there another annoying case appear.
My request is

{
  "uids": [
    "2569253357013176641"
  ]
}

while the response is

{
  "user_map": {
    "A\u0011ÀÒPÒ§#": {
      "uid": "2569253357013176641",
      "nick_name": "刘勇#41793",
      "user_icon": "https://icdn.rightpaddle.net/user_icon/2569253357013176641-21B8E06234BF40B4AEA436415821928E.jpg",
      "signature": "",
      "user_role": "0",
      "status": 1,
      "sex": 1,
      "type": 1,
      "risk_state": 0
    }
  }
}

the response user_map's key should be int64 or int64 string of id in request, but in this case, it looks messy, so there is something I can do to solve this.

from bloomrpc.

fenos avatar fenos commented on June 2, 2024 1

Try passing the parameter as a string instead of a number i think protobuf will handle the parsing of the int64 internally

from bloomrpc.

fenos avatar fenos commented on June 2, 2024

@leaxoy mmmh, this is interesting... I've done a bit of digging on this and it looks like grpc-node doesn't unserialise correctly int64 when defined on a map key, I'd be suggesting to open an issue on their repo https://github.com/grpc/grpc-node/issues and see what they say

from bloomrpc.

jackielii avatar jackielii commented on June 2, 2024

Please can you file an issue in grpc-node and open an new issue once upstream is resolved

from bloomrpc.

panpan0000 avatar panpan0000 commented on June 2, 2024

maybe you can try https://github.com/crossoverJie/ptg

from bloomrpc.

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.