WebThingsIO / gateway

WebThings Gateway - a self-hosted web application for monitoring and controlling a building over the web
http://webthings.io/gateway
Mozilla Public License 2.0
2.62k stars 339 forks source link

`ERROR : TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: base64url` when registering a subdomain #3173

Open benfrancis opened 1 month ago

benfrancis commented 1 month ago

STR:

Expected:

Actual:

Oct 10 12:00:21 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:21.913 INFO   : Starting registration
Oct 10 12:00:22 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:22.752 INFO   : Sent subscription to registration server
Oct 10 12:00:27 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:27.104 INFO   : Set DNS token on registration server
Oct 10 12:00:40 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:40.213 INFO   : Received certificate from Let's Encrypt
Oct 10 12:00:40 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:40.216 INFO   : Wrote certificates to file system
Oct 10 12:00:41 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:41.502 INFO   : Registration success!
Oct 10 12:00:41 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:41.522 INFO   : HTTPS server listening on port 4443
Oct 10 12:00:41 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:41.523 INFO   : Redirector listening on port 8080
Oct 10 12:00:43 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:43.228 INFO   : PageKite connected!
Oct 10 12:00:43 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:43.231 INFO   : Starting certificate renewal.
Oct 10 12:00:43 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:43.234 INFO   : Certificate not yet due for renewal.
Oct 10 12:00:43 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:43.236 INFO   : Unhandled Rejection
Oct 10 12:00:43 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:00:43.237 ERROR  : TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: base64url
Oct 10 12:00:43 ubuntu webthings-gateway.webthings-gateway[1895]:     at Uint8Array.toString (buffer.js:800:11)
Oct 10 12:00:43 ubuntu webthings-gateway.webthings-gateway[1895]:     at Object.generateVAPIDKeys (/snap/webthings-gateway/x1/lib/node_modules/webthings-gateway/node_modules/web-push/src/vapid-helper.js:63:32)
Oct 10 12:00:43 ubuntu webthings-gateway.webthings-gateway[1895]:     at PushService.init (/snap/webthings-gateway/x1/lib/node_modules/webthings-gateway/build/push-service.js:52:40) {
Oct 10 12:00:43 ubuntu webthings-gateway.webthings-gateway[1895]:   code: 'ERR_UNKNOWN_ENCODING'
Oct 10 12:00:43 ubuntu webthings-gateway.webthings-gateway[1895]: }
Oct 10 12:01:03 ubuntu webthings-gateway.webthings-gateway[1895]: 2024-10-10 12:01:03.908 INFO   : Tunnel domain found. Tunnel name is: foo and tunnel domain is: webthings.io