matrix-org / coap-proxy Goto Github PK
View Code? Open in Web Editor NEWHTTP<->CoAP proxy
License: GNU General Public License v3.0
HTTP<->CoAP proxy
License: GNU General Public License v3.0
Lines 46 to 50 in 9f88ae1
fedAuthRgxp
ends up being "origin=origin=([^,]+)" which is almost certainly wrong.
2019/05/31 00:51:30 DEBUG: CoAP - 4969: Got status 404
2019/05/31 00:51:30 DEBUG: CoAP - 4969: Sending response
panic: json decode error [pos 1]: decode number from empty string
goroutine 30 [running]:
github.com/matrix-org/coap-proxy/types.(*JSON).Decode(0x10766f8, 0xc00026a800, 0xa7, 0x200, 0x1, 0xc0000905a0)
/proxy/types/json.go:67 +0x22d
main.ServeCOAP(0xc05620, 0xc000081d50, 0xc00008aea0)
/proxy/coap.go:207 +0xbec
github.com/matrix-org/go-coap.HandlerFunc.ServeCOAP(0xb24a68, 0xc05620, 0xc000081d50, 0xc00008aea0)
/go/pkg/mod/github.com/matrix-org/[email protected]/server.go:61 +0x44
github.com/matrix-org/go-coap.(*Server).serveCOAP(0xc000114820, 0xc05620, 0xc000081d50, 0xc00008aea0)
/go/pkg/mod/github.com/matrix-org/[email protected]/server.go:784 +0x10a
github.com/matrix-org/go-coap.handleBlockWiseMsg(0xc05620, 0xc000081d50, 0xc00008aea0, 0xc00003bdc0)
/go/pkg/mod/github.com/matrix-org/[email protected]/blockwise.go:707 +0x78
github.com/matrix-org/go-coap.(*Server).serve.func1.1.1(0xc05620, 0xc000081d50, 0xc00008aea0)
/go/pkg/mod/github.com/matrix-org/[email protected]/server.go:773 +0x66
github.com/matrix-org/go-coap.(*TokenHandler).Handle(0xc000081c60, 0xc05620, 0xc000081d50, 0xc00008aea0, 0xc00003be80)
/go/pkg/mod/github.com/matrix-org/[email protected]/tokenhandler.go:28 +0x103
github.com/matrix-org/go-coap.handleBySessionTokenHandler(0xc05620, 0xc000081d50, 0xc00008aea0, 0xc00003be80)
/go/pkg/mod/github.com/matrix-org/[email protected]/tokenhandler.go:6 +0x6d
github.com/matrix-org/go-coap.(*Server).serve.func1.1(0xc05620, 0xc000081d50, 0xc00008aea0)
/go/pkg/mod/github.com/matrix-org/[email protected]/server.go:772 +0x66
github.com/matrix-org/go-coap.handleSignalMsg(0xc05620, 0xc000081d50, 0xc00008aea0, 0xc00003bef8)
/go/pkg/mod/github.com/matrix-org/[email protected]/networksession.go:626 +0x8b
github.com/matrix-org/go-coap.(*Server).serve.func1(0xc05620, 0xc000081d50, 0xc00008aea0)
/go/pkg/mod/github.com/matrix-org/[email protected]/server.go:771 +0x66
github.com/matrix-org/go-coap.handlePairMsg(0xc05620, 0xc000081d50, 0xc00008aea0, 0xc00003bf70)
/go/pkg/mod/github.com/matrix-org/[email protected]/networksession.go:632 +0x8b
github.com/matrix-org/go-coap.(*Server).serve(0xc000114820, 0xc00008aea0)
/go/pkg/mod/github.com/matrix-org/[email protected]/server.go:770 +0x75
github.com/matrix-org/go-coap.(*Server).worker(0xc000114820, 0xc00008aea0)
/go/pkg/mod/github.com/matrix-org/[email protected]/server.go:206 +0x39
created by github.com/matrix-org/go-coap.(*Server).spawnWorker
/go/pkg/mod/github.com/matrix-org/[email protected]/server.go:231 +0x83
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.