Git Product home page Git Product logo

Comments (1)

loggerhead avatar loggerhead commented on July 24, 2024

panic msg:

panic: value method time.Time.MarshalJSON called using nil *Time pointer

goroutine 1 [running]:
time.(*Time).MarshalJSON(0x0, 0x0, 0x4286e7c500000000, 0xc0001cdd80, 0x0, 0x0)
	<autogenerated>:1 +0x93
github.com/bytedance/sonic/encoder.encodeJsonMarshaler(0xc0000a63a8, 0x2cb1160, 0x0, 0x0, 0x0)
	/Users/tyrionlong/go/pkg/mod/github.com/bytedance/[email protected]/encoder/primitives.go:82 +0x31
github.com/bytedance/sonic/encoder.encodeTypedPointer(0xc0000a63a8, 0x125b020, 0xc000010028, 0xc000300000, 0x0, 0xc000165ed0)
	/Users/tyrionlong/go/pkg/mod/github.com/bytedance/[email protected]/encoder/primitives.go:77 +0x163
github.com/bytedance/sonic/encoder.EncodeInto(0xc0000a63a8, 0x125b020, 0xc0000be1d0, 0xc000200000, 0xc000165f30)
	/Users/tyrionlong/go/pkg/mod/github.com/bytedance/[email protected]/encoder/encoder.go:67 +0xc5
github.com/bytedance/sonic/encoder.Encode(0x125b020, 0xc0000be1d0, 0x1019701, 0x0, 0x0, 0x125d560, 0xc00008c058)
	/Users/tyrionlong/go/pkg/mod/github.com/bytedance/[email protected]/encoder/encoder.go:47 +0xbb
github.com/bytedance/sonic.Marshal(...)
	/Users/tyrionlong/go/pkg/mod/github.com/bytedance/[email protected]/sonic.go:30
main.main()
	/Users/tyrionlong/Downloads/foo/main.go:12 +0x3d
exit status 2

from sonic.

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.