zerotier/ZeroTierOne

1.12.0 breaks controller API

sinamics opened this issue · 4 comments

I get 404 when trying to update a network with the latest version.

curl -i -X POST \
http://localhost:9993/controller/network/{network_id}\
-H 'Content-Type: application/json' \
-H 'X-ZT1-Auth: $Token' \
-d '{ "name": "new network name" }'
HTTP/1.1 404 Not Found
Content-Length: 0
Keep-Alive: timeout=5, max=5

Please let us know

  • What you expect to be happening.
    200 OK.

  • What is actually happening?
    404

  • What operating system and ZeroTier version. Please try the latest ZeroTier release.
    Debian, Zerotier 1.12.0

Reproducible code:

Create network

curl -i -X POST "http://localhost:9993/controller/network/{controller_id}" \
    -H "X-ZT1-Auth: $Token" \
    -H 'Content-Type: application/json' \
    -d '{ "name": "my awesome network" }'

update network name ( Fails with 404 )

curl -i -X POST \
http://localhost:9993/controller/network/{network_id} \
    -H 'Content-Type: application/json' \
    -H 'X-ZT1-Auth: $Token' \
    -d '{ "name": "my network" }'

same issue +1, I am using ztncui and this issue also reflects on its http interfaces as mentioned above. plz help to check.

laduke commented

I think it's not listening on ipv6.localhost may be mapping to ipv6 on your machine. try 127.0.0.1. Fix is in the works.

You are right about the localhost resolves to ipv6, but unfortunately, the issue persists and I'm still receiving a 404 Not Found error.

curl -i -X POST \
http://127.0.0.1:9993/controller/network/{network_id} \
    -H 'Content-Type: application/json' \
    -H 'X-ZT1-Auth: $Token' \
    -d '{ "name": "my network" }'

Fixed in 1.12.1