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

fix TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: base64url #689

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Chelovek760
Copy link

Setup:

  • docker
  • Mac M1

Node 12 return

 } reason:
    TypeError [ERR_UNKNOWN_ENCODING]:
      Unknown encoding: base64url
     at Uint8Array.toString (buffer.js:800:11)
     at Object.generateVAPIDKeys (/usr/local/lib/node_modules/shadowsocks-manager/node_modules/web-push/src/vapid-helper.js:63:32)
     at Object.<anonymous> (/usr/local/lib/node_modules/shadowsocks-manager/plugins/webgui/server/push.js:2:27)
     at Module._compile (internal/modules/cjs/loader.js:999:30)
     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
     at Module.load (internal/modules/cjs/loader.js:863:32)
     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
     at Module.require (internal/modules/cjs/loader.js:887:19)
     at require (internal/modules/cjs/helpers.js:74:18)
     at global.appRequire (/usr/local/lib/node_modules/shadowsocks-manager/init/utils.js:4:33)
     at Object.<anonymous> (/usr/local/lib/node_modules/shadowsocks-manager/plugins/webgui/server/home.js:12:14)
     at Module._compile (internal/modules/cjs/loader.js:999:30)
     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
     at Module.load (internal/modules/cjs/loader.js:863:32)
     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
     at Module.require (internal/modules/cjs/loader.js:887:19) {
   code: 'ERR_UNKNOWN_ENCODING'
 }

Node 14 solve this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant