perara / wg-manager

A easy to use WireGuard dashboard and management tool
MIT License
594 stars 74 forks source link

POST body issues adding server (manual install) #37

Open Lombra opened 3 years ago

Lombra commented 3 years ago

Just installed this manually on a Debian 10 server, and found some issues with the frontend.

I was unable to add a server via the web interface. Clicking Add Server gave me a not too helpful red popup in the corner saying [Object object]. In the web console I was getting a 422 response.

I copied the POST JSON body and tried adding a server using the API instead, which gave me more useful errors. From there I deduced that read_only was being sent as an empty string, where an integer was expected. I was also required to add a value for v6_subnet not to get a null constraint database error even though I unchecked IPv6 support.

perara commented 3 years ago

Hi, I'll hopefully have some time on this soon. Thanks for your report. If you find the cause of this, feel free to send a PR :)