Comments (4)
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 +0x2degoroutine 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.
Hi, I just run the /example/client/goap_client.go and /example/server/coap_server.go; but error occured
from go-coap.
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.
Hi Dustin, thanks very much!! and your picture is very cool!
from go-coap.
Related Issues (20)
- Implement BinaryMarshaler and BinaryUnmarshaler for Message
- Doesn't parse token HOT 4
- Implement message retransmission of CON messages HOT 2
- TCP CoAP support
- Unit tests failing HOT 3
- Implement CoAP Blockwise Transfers HOT 4
- DTLS Support HOT 4
- Websocket Transport HOT 3
- what about block HOT 2
- coap.ParseMessage is private
- How to define Resources or Endpoints on ServerSide? HOT 3
- Data From go-coap client is not reaching Java coap-californium server HOT 3
- Implement observe draft
- coap.ServeMux does not support root path ("/") handler
- How to Handle URL Parametrs
- ResponseTimeout is not configurable on per message basis HOT 5
- Example server type assertion doesn't work, causes example to not work HOT 5
- Ridiculously low, hard-coded response timeout HOT 1
- Can anyone help manage the pull requests here? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-coap.