Search code examples
node.jsheroku

The ampersand (&) character is not allowed


I'm trying to add my environment variables for an app through the console and one of those is the database link. It contains an & in it and I don't know how to fix that.

I saw somewhere to try and add "", '' or (slash, I'm new to stack overflow don't mind it)"" but it didn't work. What can I do about it?


Solution

  • If by "database link" you meant some sort of DB URL, for example mysql://... then it got to be urlencoded.

    So replace & with %26