Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
benfrancis opened this issue Oct 10, 2024 · 0 comments
Labels
Milestone

Comments

@benfrancis
Copy link
Member

STR:

  • Re-claim (or possibly register new) subdomain during first time setup in the web interface

Expected:

  • No errors on the console (other than UnavailableNameReclamationPossible)

Actual:

  • Error on console (but appears to still work):
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
@benfrancis benfrancis added the bug label Oct 10, 2024
@benfrancis benfrancis added this to the 2.0 milestone Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Sprint Backlog
Development

No branches or pull requests

1 participant