Coder Social home page Coder Social logo

grpcdump's Issues

panic: runtime error: slice bounds out of range [5:0]

Hi, I received the following error when trying to parse a gRPC pcap:

panic: runtime error: slice bounds out of range [5:0]

goroutine 1 [running]:
github.com/jschwinger233/grpcdump/parser/grpcparser.(*Parser).unmarshalDataFrame(0xc000faa060, {0x91faf2, 0x11}, {0x7ffef9f150e0, 0x11}, 0xc000e9b200)
	/home/runner/work/grpcdump/grpcdump/parser/grpcparser/parser.go:180 +0x22b
github.com/jschwinger233/grpcdump/parser/grpcparser.(*Parser).Parse(0xc000faa060, {0x9c85f8, 0xc000442420})
	/home/runner/work/grpcdump/grpcdump/parser/grpcparser/parser.go:148 +0x1005
main.main.func3(0xc0002929a0)
	/home/runner/work/grpcdump/grpcdump/main.go:79 +0xd7
github.com/urfave/cli/v2.(*App).RunContext(0xc000185ba0, {0x9bc510, 0xc00003a100}, {0xc000032090, 0x9, 0x9})
	/home/runner/work/grpcdump/grpcdump/vendor/github.com/urfave/cli/v2/app.go:322 +0x7a8
github.com/urfave/cli/v2.(*App).Run(...)
	/home/runner/work/grpcdump/grpcdump/vendor/github.com/urfave/cli/v2/app.go:224

Do you have ideas about what happened?

The pcap file is unforunately very large and containing sensitive information that I cannot upload here, but I'm willing to give helps if needed!

data: unknown,payload unknown

cmd: grpcdump -i lo -p xxxx -f xxx.proto
log :
Jul 10 16:46:29.858333 xxx:36035->xxx:25462 packetno:1 streamid:1 data:(unknown)
Jul 10 16:46:29.858693 xxx:25462->xxx:36035 packetno:5 streamid:1 data:(unknown)
Jul 10 16:46:34.857590 xxx:36035->xxx:25462 packetno:12 streamid:1 data:(unknown)
Jul 10 16:46:34.857924 xxx:25462->xxx:36035 packetno:16 streamid:1 data:(unknown)
Jul 10 16:46:39.857601 xxx:36035->xxx:25462 packetno:26 streamid:1 data:(unknown)
Jul 10 16:46:39.857894 xxx:25462->xxx:36035 packetno:30 streamid:1 data:(unknown)
Jul 10 16:46:44.857749 xxx:36035->xxx:25462 packetno:37 streamid:1 data:(unknown)

my question : why payload is unknown , what should i do the payload can parse to object;

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.