headscale-ui icon indicating copy to clipboard operation
headscale-ui copied to clipboard

Can't rename device

Open dgoujard opened this issue 2 years ago • 1 comments

When i try to update a device name, I got this 501 error: {"code":12, "message":"Method Not Allowed", "details":[]}

dgoujard avatar Aug 16 '22 12:08 dgoujard

Method not allowed means the headscale server denied the action. What's the according error message in the headscale logs? What version of headscale are you running?

routerino avatar Aug 16 '22 21:08 routerino

Going to close this, as there is no response and this sounds like an issue with headscale not being up to date.

routerino avatar Aug 18 '22 02:08 routerino

Hi, sorry for the delay, it's the last version of headscale: 0.16.2 I don't have log in the headscale container when i navigate in the headscale-ui (but i can see data on the interface)

dgoujard avatar Aug 18 '22 07:08 dgoujard

When you attempt to update the name, there will be a corresponding log in the headscale console in the command line. What does it say?

routerino avatar Aug 18 '22 08:08 routerino

Ah, actually I suspect you're encountering another CORS issue. are you running headscale-ui on the same subdomain? if not, are you letting through all of the following options in CORS? Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE"

routerino avatar Aug 18 '22 09:08 routerino

It's the same domain but the POST url contain a // so it's my config i think. I check that

dgoujard avatar Aug 18 '22 10:08 dgoujard

possibly a duplicate of #46 , which has a fix next week (albeit I couldn't get chrome or firefox to complain about a trailing slash).

routerino avatar Aug 18 '22 23:08 routerino

Ok it's a issue in my setting, in the Headscale URL it was : https://headscale.monndd/ when i change it to https://headscale.monndd it work !

dgoujard avatar Aug 19 '22 13:08 dgoujard

righto, should be fixed next release

routerino avatar Aug 19 '22 23:08 routerino