unixbigot / gozer

An api client for the Zerotier One software-defined-network written in Go
GNU General Public License v3.0
15 stars 13 forks source link

cannot parse HTTP/2.0 / json: cannot unmarshal array into Go value of type map[string]int #1

Open glycerine opened 7 years ago

glycerine commented 7 years ago

Very cool idea, gozer. I think it's gotten out of date a little bit; the format of the responses has changed.

$ gozer --all
...
gozer: 10:10:23.263670 GozerLog.go:35: ERROR:  [Cannot parse response HTTP/2.0 200 OK
... # big text dump of json that has private network info in it
 json: cannot unmarshal array into Go value of type map[string]int
unixbigot commented 7 years ago

Ah, I can reproduce this. It looks like they changed a response from a map to an array, its a relatively easy fix.

glycerine commented 7 years ago

Partially. See the partial fix in #3. It appears they also just completely stopped shipping info about which nodes have been active recently.