Giter VIP home page Giter VIP logo

Comments (4)

dustin avatar dustin commented on July 29, 2024

Do you have example code that leads to this?

On Sun, Dec 28, 2014, 07:46 zhaohui-kevin [email protected] wrote:

When I try coap-client connect to coap-server(in example) panic is
occured! (In Go1.4)

panic: invalid type for option 8: []string ([some path])

goroutine 5 [running]:
github.com/dustin/go-coap.option.toBytes(0x8, 0x4f7660, 0xc20801e280,
0x0, 0x0, 0x0)
/home/work/gosrc/src/github.com/dustin/go-coap/message.go:242 +0x32b
github.com/dustin/go-coap.(*Message).MarshalBinary(0xc20803c320, 0x0,
0x0, 0x0, 0x0, 0x0)
/home/work/gosrc/src/github.com/dustin/go-coap/message.go:410 +0x315
github.com/dustin/go-coap.Transmit(0xc208038028, 0xc20803a3f0,
0x30394502, 0x0, 0x0, 0x0, 0xc208045290, 0xd, 0x10, 0xc20803a480, ...)
/home/work/gosrc/src/github.com/dustin/go-coap/server.go:47 +0x6b
github.com/dustin/go-coap.handlePacket(0xc208038028, 0xc20803a420, 0x25,
0x25, 0xc20803a3f0, 0x7f9238a8ab18, 0x597fb0)
/home/work/gosrc/src/github.com/dustin/go-coap/server.go:41 +0x30b
created by github.com/dustin/go-coap.ListenAndServe
/home/work/gosrc/src/github.com/dustin/go-coap/server.go:89 +0x2de

goroutine 1 [IO wait]:
net.(

_pollDesc).Wait(0xc2080100d0, 0x72, 0x0, 0x0)
/home/work/go/src/net/fd_poll_runtime.go:84 +0x47 net.(_pollDesc).WaitRead(0xc2080100d0,
0x0, 0x0)
/home/work/go/src/net/fd_poll_runtime.go:89 +0x43
net.(

_netFD).readFrom(0xc208010070, 0xc20805686c, 0x5dc, 0x5dc, 0x0, 0x0, 0x0,
0x7f9238a8aac8, 0xc2080450a0) /home/work/go/src/net/fd_unix.go:269 +0x4a1
net.(_UDPConn).ReadFromUDP(0xc208038028, 0xc20805686c, 0x5dc, 0x5dc,
0xc20803a3f0, 0x0, 0x0, 0x0)
/home/work/go/src/net/udpsock_posix.go:67 +0x124
github.com/dustin/go-coap.ListenAndServe(0x55f730, 0x3, 0x556d10, 0x5,
0x7f9238a8ab18, 0x597fb0, 0x0, 0x0)
/home/work/gosrc/src/github.com/dustin/go-coap/server.go:85 +0x19c
main.main()
/home/work/gosrc/src/
github.com/dustin/go-coap/example/server/coap_server.go:27 +0xa5
exit status 2


Reply to this email directly or view it on GitHub
#16.

from go-coap.

zhaohui-kevin avatar zhaohui-kevin commented on July 29, 2024

Hi, I just run the /example/client/goap_client.go and /example/server/coap_server.go; but error occured

from go-coap.

dustin avatar dustin commented on July 29, 2024

Thanks. Found it, wrote a test, etc...

On Sun Dec 28 2014 at 9:43:34 PM zhaohui-kevin [email protected]
wrote:

Hi, I just run the /example/client/goap_client.go and
/example/server/coap_server.go; but error occured


Reply to this email directly or view it on GitHub
#16 (comment).

from go-coap.

zhaohui-kevin avatar zhaohui-kevin commented on July 29, 2024

Hi Dustin, thanks very much!! and your picture is very cool!

from go-coap.

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.