Activation licence failed : value.toWellFormed is not a function

Hello
i found no other topics with the same error when trying to activate the community licence.
I receive this error :

Activation failed

Failed to activate license: Connection Error: value.toWellFormed is not a function
Failed to activate license: Connection Error: value.toWellFormed is not a function

Any idea ?

  • n8n version: : 1.97.1
  • Database (default: SQLite): : SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: debian 12
1 Like

Hey @rodo ,

Backup your Workflows first then try this command

n8n license:clear

If not trying upgrading to the newest version
Last thing rebuild from scratch

Jm

Hello

same problem here.
i have installed n8n on my raspberry pi 5 following these instructions.
https://wagnerstechtalk.com/pi5-n8n/
everything works fine except that i can’t activate my licence and i get the error message.

everything is up to date. i have already tried
n8n licence:clear without success.

does anyone have an idea how I can fix this?

thank you very much for your help
mandragora

  • n8n version: : 1.99.1
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • **Operating system: Raspberrypi OS

Same for me, tried the clear command, and updated, already the last version, still the same error.

@mandragora

I think its related to your npm version on the raspberry pi
What version do you have ?
Can you upgrade ?

@mrrobot
updated from npm version 10.8.2 to 11.4.2
updated from node version v18.20.6 to v24.3.0

same error message

thank you very much

mandragora

@mandragora

Did you rebuild n8n?

I would suggest to clean everything , remove older npm versions to have a clean setup and reinstall npm. I would go for that

Jm

Hi mrrobot

i just installed my raspberry pi yesterday using the instructions i posted.
i haven’t done a new installation yet.
is there a wrong way described in these instructions or should i choose a different installation method?

thank you
BR
mandragora

Hey @mandragora ,

What i would have done is install docker on the raspberry pi and boot the n8n container as simple as that.

Try that, i run most of my apps on containers on my raspberry

Jm

I’m having the same error. Not using docker . not using nginx , no https

is the license server up ?
curl https://license.n8n.io/
{“code”:404,“message”:“not found”}admin@ip-172-174:~/.n8n$ ^

Hi… thank you

i will try that.

BR
mandragora

Hi, i had the same issue and i bumped my node to the version 20 and it fixed the issue.

My issue was to use this property in node 18 : String.prototype.toWellFormed() - JavaScript | MDN

As mentioned in the doc, it is only available from nodejs version 20.

Failed to activate license: Connection Error: value.toWellFormed is not a function
Failed to activate license: Connection Error: value.toWellFormed is not a function

i am using AWS EC2 instance, and it failed to activate my licence
i followed these steps n8n/use aws Vm for n8n workspace.md at main · kapil9-10/n8n · GitHub

upgraded my npm and node to latest as well :smiling_face_with_tear:
New to this

I am having the same issue, I am using GCP.
Has anyone found a solution?

Same error, tried clearing license no help, tried restart as well.

Installed N8N on a Rpi and get this error also.